Closes the connection to the peer.
procedure Disconnect( ANotifyPeer: Boolean ); override;
Parameters |
Description |
ANotifyPeer |
Indicates the peer is immediately notified when the connection is closed. |
Disconnect is an overridden procedure used to close the peer connection for the command handler-enabled client. Disconnect terminates the listening thread in the client when it has been assigned.
Disconnect calls the inherited Disconnect method using ANotifyPeer to indicate if the peer is notified of the new connection state. The inherited method also triggers procedures assigned to the OnStatus and OnDisconnected event handlers, and closes an assigned IOHandler for the client.
Disconnect waits for an assigned listening thread to complete after termination. The listening thread is freed after termination.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|