C# Class RPCBase.Client.GateAdaptor

Inheritance: IAdaptor, IPollable
Exibir arquivo Open project: fingerpasswang/Phial Class Usage Examples

Public Methods

Method Description
BeginReceive ( ) : void
GateAdaptor ( string connIp, int port ) : System
Poll ( ) : void
RegisterDelegate ( IMessageConsumer consumer, string serviceId ) : void
RegisterImpl ( IMessageConsumer impl, string serviceId ) : void
Send ( byte buffer, byte dstUuid, RoutingRule routingRule ) : void

Private Methods

Method Description
MessageTypeToBuffer ( GateMessage message ) : byte[]
OnHandleConnected ( ILocal remote, Exception e ) : void
OnHandleDisconnected ( ) : void
OnHandleMessageReceived ( Network.Message msg ) : void

Method Details

BeginReceive() public method

public BeginReceive ( ) : void
return void

GateAdaptor() public method

public GateAdaptor ( string connIp, int port ) : System
connIp string
port int
return System

Poll() public method

public Poll ( ) : void
return void

RegisterDelegate() public method

public RegisterDelegate ( IMessageConsumer consumer, string serviceId ) : void
consumer IMessageConsumer
serviceId string
return void

RegisterImpl() public method

public RegisterImpl ( IMessageConsumer impl, string serviceId ) : void
impl IMessageConsumer
serviceId string
return void

Send() public method

public Send ( byte buffer, byte dstUuid, RoutingRule routingRule ) : void
buffer byte
dstUuid byte
routingRule RoutingRule
return void