From RAD Studio API Documentation
Jump to: navigation, search


typedef void __fastcall (__closure *TSocketNotifyEvent)(System::TObject* Sender, TCustomWinSocket* Socket);


Type Visibility Source Unit Parent
typedef public System.Win.ScktComp.hpp System.Win.ScktComp System.Win.ScktComp


The type for event handlers that notify that an event has occurred to a certain socket connection.

The Sender parameter is the socket component or Windows socket object to which the event occurred.

The Socket parameter is the TCustomWinSocket object that represents the endpoint of the connection.

When the event handler belongs to a client Windows socket object, these two parameters are the same. For server Windows socket objects, the Sender parameter represents the listening connection while the Socket parameter represents a client connection.

See Also