SocketTools .NET Edition

NntpClient.OnDisconnect Event

Occurs when the remote host disconnects from the local system.

[Visual Basic]
Public Event OnDisconnect As EventHandler
[C#]
public event EventHandler OnDisconnect;

Remarks

The OnDisconnect event occurs when the remote host closes its connection, terminating the client session with the application. Because there may still be data in the client receive buffers, you should continue to read data from the client until the Read method returns a value of 0. Once all of the data has been read, you should call the Disconnect method to close the local socket and release the resources allocated for the client.

This event is only generated if the client is in non-blocking mode.

See Also

NntpClient Class | SocketTools Namespace