C# Class Tempest.Providers.Network.NetworkClientConnection

Inheritance: NetworkConnection, IClientConnection
Mostra file Open project: ermau/Tempest Class Usage Examples

Private Properties

Property Type Description
ConnectCompleted void
GetConnectFromError ConnectionResult
OnActivityTimer void
OnConnected void
OnConnectionFailed void

Public Methods

Method Description
ConnectAsync ( Target target, MessageTypes messageTypes ) : Task
NetworkClientConnection ( IEnumerable protocols ) : System
NetworkClientConnection ( IEnumerable protocols, RSAAsymmetricKey authKey ) : System
NetworkClientConnection ( Protocol protocol ) : System
NetworkClientConnection ( Protocol protocol, RSAAsymmetricKey authKey ) : System

Protected Methods

Method Description
OnDisconnected ( DisconnectedEventArgs e ) : void
OnTempestMessageReceived ( MessageEventArgs e ) : void
Recycle ( ) : void

Private Methods

Method Description
ConnectCompleted ( object sender, SocketAsyncEventArgs e ) : void
GetConnectFromError ( SocketError error ) : ConnectionResult
OnActivityTimer ( object sender, EventArgs e ) : void
OnConnected ( ClientConnectionEventArgs e ) : void
OnConnectionFailed ( ClientConnectionEventArgs e ) : void

Method Details

ConnectAsync() public method

public ConnectAsync ( Target target, MessageTypes messageTypes ) : Task
target Target
messageTypes MessageTypes
return Task

NetworkClientConnection() public method

public NetworkClientConnection ( IEnumerable protocols ) : System
protocols IEnumerable
return System

NetworkClientConnection() public method

public NetworkClientConnection ( IEnumerable protocols, RSAAsymmetricKey authKey ) : System
protocols IEnumerable
authKey RSAAsymmetricKey
return System

NetworkClientConnection() public method

public NetworkClientConnection ( Protocol protocol ) : System
protocol Protocol
return System

NetworkClientConnection() public method

public NetworkClientConnection ( Protocol protocol, RSAAsymmetricKey authKey ) : System
protocol Protocol
authKey RSAAsymmetricKey
return System

OnDisconnected() protected method

protected OnDisconnected ( DisconnectedEventArgs e ) : void
e DisconnectedEventArgs
return void

OnTempestMessageReceived() protected method

protected OnTempestMessageReceived ( MessageEventArgs e ) : void
e MessageEventArgs
return void

Recycle() protected method

protected Recycle ( ) : void
return void