C# Класс SRPClient.Connection

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SetEncryption ( INetEncryption enc ) : void

Sets the encryption

SetEncryptionKey ( Byte key ) : void

Sets the key (when transfered servers)

Описание методов

Connection() публичный Метод

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
Результат System

Connection() публичный Метод

Constructor
public Connection ( NetPeer manager, NetConnection con, INetEncryption encryption ) : System
manager Lidgren.Network.NetPeer Local NetPeer
con Lidgren.Network.NetConnection NetConnection
encryption INetEncryption
Результат System

Connection() публичный Метод

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
Результат System

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Will deregister all protocols
public Dispose ( ) : void
Результат void

IncomingMessage() публичный Метод

This handles an incoming message
public IncomingMessage ( NetIncomingMessage msg ) : void
msg Lidgren.Network.NetIncomingMessage The received message
Результат void

SendMessage() публичный Метод

Sends a message
public SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method ) : void
msg Lidgren.Network.NetOutgoingMessage The message to send
method NetDeliveryMethod The delivery method
Результат void

SendMessage() публичный Метод

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
Результат void