RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientSocket.OnDisconnect Event

Occurs just before a client socket closes the connection to a server socket.

Pascal
property OnDisconnect: TSocketNotifyEvent;
C++
__property TSocketNotifyEvent OnDisconnect;

Write an OnDisconnect event handler to take specific action when the connection to a server socket is about to be terminated. OnDisconnect occurs after the value of the Active property is set to false, but before the actual connection is closed. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!