C# Class Base.TChannel

Inheritance: AChannel
Datei anzeigen Open project: egametang/Egametang Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Recv ( ) : Task
Send ( List buffers, byte channelID, PacketFlags flags = PacketFlags.Reliable ) : void
Send ( byte buffer, byte channelID, PacketFlags flags = PacketFlags.Reliable ) : void
TChannel ( TSocket socket, TService service ) : System

accept

TChannel ( TSocket socket, string host, int port, TService service ) : System

connect

Private Methods

Method Description
OnAccepted ( ) : void
OnConnected ( long channelId, SocketError error ) : void
OnRecv ( int n, SocketError error ) : void
OnSend ( int n, SocketError error ) : void
StartRecv ( ) : void
StartSend ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Recv() public method

public Recv ( ) : Task
return Task

Send() public method

public Send ( List buffers, byte channelID, PacketFlags flags = PacketFlags.Reliable ) : void
buffers List
channelID byte
flags PacketFlags
return void

Send() public method

public Send ( byte buffer, byte channelID, PacketFlags flags = PacketFlags.Reliable ) : void
buffer byte
channelID byte
flags PacketFlags
return void

TChannel() public method

accept
public TChannel ( TSocket socket, TService service ) : System
socket TSocket
service TService
return System

TChannel() public method

connect
public TChannel ( TSocket socket, string host, int port, TService service ) : System
socket TSocket
host string
port int
service TService
return System