C# Class Helios.Channels.Sockets.AbstractSocketChannel

Inheritance: AbstractChannel, ISocketChannel
Datei anzeigen Open project: helios-io/helios Class Usage Examples

Protected Properties

Property Type Description
Socket Socket

Private Properties

Property Type Description
ClearReadPending0 void
OnIoCompleted void

Protected Methods

Method Description
AbstractSocketChannel ( IChannel parent, Socket socket ) : System
ClearReadPending ( ) : void

Set read pending to false.

DoBeginRead ( ) : void
DoClose ( ) : void
DoConnect ( EndPoint remoteAddress, EndPoint localAddress ) : bool

Connect to the remote peer

DoFinishConnect ( SocketChannelAsyncOperation operation ) : void

Finish the connect

IsCompatible ( IEventLoop eventLoop ) : bool
IsInState ( StateFlags stateToCheck ) : bool
PrepareWriteOperation ( ArraySegment buffer ) : SocketChannelAsyncOperation
PrepareWriteOperation ( IList buffers ) : SocketChannelAsyncOperation
ResetState ( StateFlags stateToReset ) : bool
ResetWriteOperation ( ) : void
ScheduleSocketRead ( ) : void
SetState ( StateFlags stateToSet ) : void
ShutdownInput ( ) : void

Private Methods

Method Description
ClearReadPending0 ( ) : void
OnIoCompleted ( object sender, SocketAsyncEventArgs args ) : void PORT NOTE: matches behavior of NioEventLoop.processSelectedKey

Method Details

AbstractSocketChannel() protected method

protected AbstractSocketChannel ( IChannel parent, Socket socket ) : System
parent IChannel
socket Socket
return System

ClearReadPending() protected method

Set read pending to false.
protected ClearReadPending ( ) : void
return void

DoBeginRead() protected method

protected DoBeginRead ( ) : void
return void

DoClose() protected method

protected DoClose ( ) : void
return void

DoConnect() protected abstract method

Connect to the remote peer
protected abstract DoConnect ( EndPoint remoteAddress, EndPoint localAddress ) : bool
remoteAddress System.Net.EndPoint
localAddress System.Net.EndPoint
return bool

DoFinishConnect() protected abstract method

Finish the connect
protected abstract DoFinishConnect ( SocketChannelAsyncOperation operation ) : void
operation SocketChannelAsyncOperation
return void

IsCompatible() protected method

protected IsCompatible ( IEventLoop eventLoop ) : bool
eventLoop IEventLoop
return bool

IsInState() protected method

protected IsInState ( StateFlags stateToCheck ) : bool
stateToCheck StateFlags
return bool

PrepareWriteOperation() protected method

protected PrepareWriteOperation ( ArraySegment buffer ) : SocketChannelAsyncOperation
buffer ArraySegment
return SocketChannelAsyncOperation

PrepareWriteOperation() protected method

protected PrepareWriteOperation ( IList buffers ) : SocketChannelAsyncOperation
buffers IList
return SocketChannelAsyncOperation

ResetState() protected method

protected ResetState ( StateFlags stateToReset ) : bool
stateToReset StateFlags
return bool

ResetWriteOperation() protected method

protected ResetWriteOperation ( ) : void
return void

ScheduleSocketRead() protected abstract method

protected abstract ScheduleSocketRead ( ) : void
return void

SetState() protected method

protected SetState ( StateFlags stateToSet ) : void
stateToSet StateFlags
return void

ShutdownInput() protected method

protected ShutdownInput ( ) : void
return void

Property Details

Socket protected_oe property

protected Socket Socket
return Socket