System.Win.ScktComp.TCustomSocket.OnDisconnect

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also