C# Class SuperSocket.SocketEngine.AsyncSocketSession

Inheritance: SocketSession, IAsyncSocketSession
显示文件 Open project: kerryjiang/SuperSocket Class Usage Examples

Public Methods

Method Description
ApplySecureProtocol ( ) : void
AsyncSocketSession ( Socket client, IPool saePoolForReceive ) : System
AsyncSocketSession ( Socket client, IPool saePoolForReceive, bool isReset ) : System
Initialize ( IAppSession appSession ) : void
ProcessReceive ( SocketAsyncEventArgs e ) : void
Start ( ) : void

Protected Methods

Method Description
OnClosed ( CloseReason reason ) : void
SendAsync ( SendingQueue queue ) : void
SendSync ( SendingQueue queue ) : void

Private Methods

Method Description
ClearPrevSendState ( SocketAsyncEventArgs e ) : void
OnSendingCompleted ( object sender, SocketAsyncEventArgs e ) : void
ProcessCompleted ( SocketAsyncEventArgs e ) : bool
StartReceive ( SocketAsyncEventArgs e ) : void

Method Details

ApplySecureProtocol() public method

public ApplySecureProtocol ( ) : void
return void

AsyncSocketSession() public method

public AsyncSocketSession ( Socket client, IPool saePoolForReceive ) : System
client System.Net.Sockets.Socket
saePoolForReceive IPool
return System

AsyncSocketSession() public method

public AsyncSocketSession ( Socket client, IPool saePoolForReceive, bool isReset ) : System
client System.Net.Sockets.Socket
saePoolForReceive IPool
isReset bool
return System

Initialize() public method

public Initialize ( IAppSession appSession ) : void
appSession IAppSession
return void

OnClosed() protected method

protected OnClosed ( CloseReason reason ) : void
reason CloseReason
return void

ProcessReceive() public method

public ProcessReceive ( SocketAsyncEventArgs e ) : void
e System.Net.Sockets.SocketAsyncEventArgs
return void

SendAsync() protected method

protected SendAsync ( SendingQueue queue ) : void
queue SendingQueue
return void

SendSync() protected method

protected SendSync ( SendingQueue queue ) : void
queue SendingQueue
return void

Start() public method

public Start ( ) : void
return void