C# Class SRPClient.Connection

Inheritance: IDisposable
Exibir arquivo Open project: SleeplessByte/lidgren-srp6a Class Usage Examples

Public Methods

Method Description
Connection ( NetPeer manager, NetConnection con, Byte key ) : System

Constructor

Connection ( NetPeer manager, NetConnection con, INetEncryption encryption ) : System

Constructor

Connection ( NetPeer manager, NetConnection con, INetEncryption encryption, String nodeId ) : System

Constructor

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Will deregister all protocols

IncomingMessage ( NetIncomingMessage msg ) : void

This handles an incoming message

SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method ) : void

Sends a message

SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method, Int32 sequenceChannel ) : void

Sends a message

Private Methods

Method Description
SetEncryption ( INetEncryption enc ) : void

Sets the encryption

SetEncryptionKey ( Byte key ) : void

Sets the key (when transfered servers)

Method Details

Connection() public method

Constructor
public Connection ( NetPeer manager, NetConnection con, Byte key ) : System
manager Lidgren.Network.NetPeer Local NetPeer
con Lidgren.Network.NetConnection NetConnection
key Byte Node Id
return System

Connection() public method

Constructor
public Connection ( NetPeer manager, NetConnection con, INetEncryption encryption ) : System
manager Lidgren.Network.NetPeer Local NetPeer
con Lidgren.Network.NetConnection NetConnection
encryption INetEncryption
return System

Connection() public method

Constructor
public Connection ( NetPeer manager, NetConnection con, INetEncryption encryption, String nodeId ) : System
manager Lidgren.Network.NetPeer Local NetPeer
con Lidgren.Network.NetConnection NetConnection
encryption INetEncryption
nodeId String Node Id
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Will deregister all protocols
public Dispose ( ) : void
return void

IncomingMessage() public method

This handles an incoming message
public IncomingMessage ( NetIncomingMessage msg ) : void
msg Lidgren.Network.NetIncomingMessage The received message
return void

SendMessage() public method

Sends a message
public SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method ) : void
msg Lidgren.Network.NetOutgoingMessage The message to send
method NetDeliveryMethod The delivery method
return void

SendMessage() public method

Sends a message
public SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method, Int32 sequenceChannel ) : void
msg Lidgren.Network.NetOutgoingMessage The message to send
method NetDeliveryMethod The delivery method
sequenceChannel System.Int32 The sequence channel
return void