Свойство | Тип | Описание | |
---|---|---|---|
m_Listener | |||
m_LoginArgs | GonzoNet.LoginArgsContainer |
Метод | Описание | |
---|---|---|
Connect ( GonzoNet.LoginArgsContainer LoginArgs ) : void |
Connects to the login server.
|
|
Disconnect ( ) : void |
Disconnects this NetworkClient instance and stops all sending and receiving of data.
|
|
GetPackets ( ) : Queue |
||
NetworkClient ( Socket ClientSocket, |
Initializes a client that listens for data.
|
|
NetworkClient ( string IP, int Port, EncryptionMode EMode, bool KeepAlive ) : System | ||
ProcessPackets ( ) : void | ||
Send ( byte Data ) : void | ||
SendEncrypted ( byte PacketID, byte Data ) : void |
Sends an encrypted packet to the server. Automatically appends the length of the packet after the ID, as the encrypted data can be smaller or longer than that of the unencrypted data.
|
Метод | Описание | |
---|---|---|
OnSend ( IAsyncResult AR ) : void | ||
ReceiveCallback ( IAsyncResult AR ) : void |
Метод | Описание | |
---|---|---|
BeginReceive ( ) : void | ||
ConnectCallback ( IAsyncResult AR ) : void | ||
FindPacketHandler ( byte ID ) : GonzoNet.PacketHandler | ||
OnPacket ( GonzoNet.ProcessedPacket packet, GonzoNet.PacketHandler handler ) : void |
public Connect ( GonzoNet.LoginArgsContainer LoginArgs ) : void | ||
LoginArgs | GonzoNet.LoginArgsContainer | Arguments used for login. Can be null. |
Результат | void |
public NetworkClient ( Socket ClientSocket, |
||
ClientSocket | Socket | The client's socket. |
Server | The Listener instance calling this constructor. | |
EMode | EncryptionMode | |
Результат | System |
public NetworkClient ( string IP, int Port, EncryptionMode EMode, bool KeepAlive ) : System | ||
IP | string | |
Port | int | |
EMode | EncryptionMode | |
KeepAlive | bool | |
Результат | System |
protected OnSend ( IAsyncResult AR ) : void | ||
AR | IAsyncResult | |
Результат | void |
protected ReceiveCallback ( IAsyncResult AR ) : void | ||
AR | IAsyncResult | |
Результат | void |
public SendEncrypted ( byte PacketID, byte Data ) : void | ||
PacketID | byte | The ID of the packet (will remain unencrypted). |
Data | byte | The data that will be encrypted. |
Результат | void |