C# Class Base.AChannel

Inheritance: IDisposable
Mostrar archivo Open project: egametang/Egametang Class Usage Examples

Protected Properties

Property Type Description
service AService

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

发送消息

Protected Methods

Method Description
AChannel ( AService service, ChannelType channelType ) : System
OnError ( AChannel channel, SocketError e ) : void

Method Details

AChannel() protected method

protected AChannel ( AService service, ChannelType channelType ) : System
service AService
channelType ChannelType
return System

Dispose() public method

public Dispose ( ) : void
return void

OnError() protected method

protected OnError ( AChannel channel, SocketError e ) : void
channel AChannel
e SocketError
return void

Recv() public abstract method

接收消息
public abstract Recv ( ) : Task
return Task

Send() public abstract method

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

Send() public abstract method

发送消息
public abstract Send ( byte buffer, byte channelID, PacketFlags flags = PacketFlags.Reliable ) : void
buffer byte
channelID byte
flags PacketFlags
return void

Property Details

service protected_oe property

protected AService,Base service
return AService