C# Class Base.UChannel

Inheritance: AChannel
显示文件 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
UChannel ( USocket socket, UService service ) : System

accept

UChannel ( USocket socket, string host, int port, UService service ) : System

connect

Private Methods

Method Description
OnRecv ( ) : 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

UChannel() public method

accept
public UChannel ( USocket socket, UService service ) : System
socket USocket
service UService
return System

UChannel() public method

connect
public UChannel ( USocket socket, string host, int port, UService service ) : System
socket USocket
host string
port int
service UService
return System