System.Win.ScktComp.TClientSocket.OnDisconnect
Delphi
property OnDisconnect: TSocketNotifyEvent read FOnDisconnect write FOnDisconnect;
C++
__property OnDisconnect;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TClientSocket |
Description
Occurs just before a client socket closes the connection to a server socket. {{#multireplace:System.Win.ScktComp.TClientSocket.OnDisconnect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Win.ScktComp.TCustomSocket.OnDisconnect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Win.ScktComp.TCustomSocket.OnDisconnect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
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.