Свойство | Type | Description |
---|
Méthode | Description | |
---|---|---|
Client ( ) : System |
Initializes a new instance of the Client object. Both the ClientSocket property and the DestroyDelegate are initialized to null. |
|
Client ( Socket ClientSocket, DestroyDelegate Destroyer ) : System |
Initializes a new instance of the Client class.
|
|
Dispose ( ) : void |
Disposes of the resources (other than memory) used by the Client. Closes the connections with the local client and the remote host. Once |
|
StartHandshake ( ) : void |
Starts communication with the local client.
|
|
StartRelay ( ) : void |
Starts relaying data between the remote host and the local client. This method should only be called after all protocol specific communication has been finished. |
|
ToString ( ) : string |
Returns text information about this Client object.
|
Méthode | Description | |
---|---|---|
OnClientReceive ( IAsyncResult ar ) : void |
Called when we have received data from the local client.
|
|
OnClientSent ( IAsyncResult ar ) : void |
Called when we have sent data to the local client.
|
|
OnRemoteReceive ( IAsyncResult ar ) : void |
Called when we have received data from the remote host.
|
|
OnRemoteSent ( IAsyncResult ar ) : void |
Called when we have sent data to the remote host.
|
public Client ( Socket ClientSocket, DestroyDelegate Destroyer ) : System | ||
ClientSocket | Socket | The |
Destroyer | DestroyDelegate | The callback method to be called when this Client object disconnects from the local client and the remote server. |
Résultat | System |
protected OnClientReceive ( IAsyncResult ar ) : void | ||
ar | IAsyncResult | The result of the asynchronous operation. |
Résultat | void |
protected OnClientSent ( IAsyncResult ar ) : void | ||
ar | IAsyncResult | The result of the asynchronous operation. |
Résultat | void |
protected OnRemoteReceive ( IAsyncResult ar ) : void | ||
ar | IAsyncResult | The result of the asynchronous operation. |
Résultat | void |
protected OnRemoteSent ( IAsyncResult ar ) : void | ||
ar | IAsyncResult | The result of the asynchronous operation. |
Résultat | void |