From RAD Studio API Documentation
Jump to: navigation, search


typedef void __fastcall (__closure *TSocketEventEvent)(System::TObject* Sender, TCustomWinSocket* Socket, TSocketEvent SocketEvent);


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 socket connection and also to the operation it is currently performing.

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.

The SocketEvent parameter specifies the operation that a socket is currently performing.

The TSocketEventEvent type is similar to TSocketNotifyEvent. Additionally, through the SocketEvent parameter, TSocketEventEvent notifies not only that an event has occurred, but also specifies the type of operation the socket is performing.

See Also