C# Class Gallatin.Core.Net.ServerDispatcher

Inheritance: IServerDispatcher
Exibir arquivo Open project: williamoneill/Gallatin Class Usage Examples

Public Methods

Method Description
ConnectToServer ( string host, int port, IHttpResponseFilter filter, Action callback ) : void
Reset ( ) : void
TrySendDataToActiveServer ( byte data ) : bool

Private Methods

Method Description
ActiveServerDataAvailable ( object sender, DataAvailableEventArgs e ) : void
HandleConnect ( bool success, INetworkConnection connection ) : void
RemoveServer ( IHttpServer server ) : void
ServerConnectionClosed ( object sender, EventArgs e ) : void
ServerDispatcher ( INetworkConnectionFactory factory ) : System

Method Details

ConnectToServer() public method

public ConnectToServer ( string host, int port, IHttpResponseFilter filter, Action callback ) : void
host string
port int
filter IHttpResponseFilter
callback Action
return void

Reset() public method

public Reset ( ) : void
return void

TrySendDataToActiveServer() public method

public TrySendDataToActiveServer ( byte data ) : bool
data byte
return bool