C# Class SuperSocket.ClientEngine.EasyClientBase

Inheritance: IBufferState
Datei anzeigen Open project: kerryjiang/SuperSocket.ClientEngine

Public Methods

Method Description
BeginConnect ( EndPoint remoteEndPoint ) : void
Close ( ) : Task
Close ( ) : void
ConnectAsync ( EndPoint remoteEndPoint ) : Task
EasyClientBase ( ) : System
Send ( ArraySegment segment ) : void
Send ( List segments ) : void
Send ( byte data ) : void

Protected Methods

Method Description
HandlePackage ( IPackageInfo package ) : void

Private Methods

Method Description
FinishConnectTask ( bool result ) : bool
GetUnderlyingSession ( ) : TcpClientSession
InitConnect ( EndPoint remoteEndPoint ) : TaskCompletionSource
OnError ( SuperSocket.ClientEngine.ErrorEventArgs args ) : void
OnError ( Exception e ) : void
OnSessionClosed ( object sender, EventArgs e ) : void
OnSessionConnected ( object sender, EventArgs e ) : void
OnSessionDataReceived ( object sender, SuperSocket.ClientEngine.DataEventArgs e ) : void
OnSessionError ( object sender, SuperSocket.ClientEngine.ErrorEventArgs e ) : void

Method Details

BeginConnect() public method

public BeginConnect ( EndPoint remoteEndPoint ) : void
remoteEndPoint System.Net.EndPoint
return void

Close() public method

public Close ( ) : Task
return Task

Close() public method

public Close ( ) : void
return void

ConnectAsync() public method

public ConnectAsync ( EndPoint remoteEndPoint ) : Task
remoteEndPoint System.Net.EndPoint
return Task

EasyClientBase() public method

public EasyClientBase ( ) : System
return System

HandlePackage() protected abstract method

protected abstract HandlePackage ( IPackageInfo package ) : void
package IPackageInfo
return void

Send() public method

public Send ( ArraySegment segment ) : void
segment ArraySegment
return void

Send() public method

public Send ( List segments ) : void
segments List
return void

Send() public method

public Send ( byte data ) : void
data byte
return void