C# Class Gate.Gate

Show file Open project: fingerpasswang/GateSharp Class Usage Examples

Public Properties

Property Type Description
receivedBuffer byte[]

Public Methods

Method Description
Gate ( int frontPort, int backPort ) : System
MainLoop ( ) : void
PushReceivedMessage ( IRemote remote, byte data, int len, int offset ) : void

Private Methods

Method Description
OnBackendConnected ( IRemote conn ) : void
OnBackendDisconnected ( IRemote conn ) : void
OnBackendMessageReceived ( IRemote conn, Network.Message msg ) : void
OnFrontendConnected ( IRemote conn ) : void
OnFrontendDisconnected ( IRemote conn ) : void
OnFrontendMessageReceived ( IRemote conn, Network.Message msg ) : void

Method Details

Gate() public method

public Gate ( int frontPort, int backPort ) : System
frontPort int
backPort int
return System

MainLoop() public method

public MainLoop ( ) : void
return void

PushReceivedMessage() public static method

public static PushReceivedMessage ( IRemote remote, byte data, int len, int offset ) : void
remote IRemote
data byte
len int
offset int
return void

Property Details

receivedBuffer public static property

public static byte[] receivedBuffer
return byte[]