System.Win.ScktComp.TCustomSocket.OnDisconnect
Delphi
property OnDisconnect: TSocketNotifyEvent read FOnDisconnect write FOnDisconnect;
C++
__property TSocketNotifyEvent OnDisconnect = {read=FOnDisconnect, write=FOnDisconnect};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TCustomSocket |
Description
Occurs just before a client socket closes the connection to a server socket.
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.