From RAD Studio API Documentation
Jump to: navigation, search


typedef void __fastcall (__closure *TGetThreadEvent)(System::TObject* Sender, TServerClientWinSocket* ClientSocket, TServerClientThread* &SocketThread);


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


The type for event handlers that respond to events during the execution of threads that handle individual client connections.

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

The ClientSocket parameter is the TServerClientWinSocket object used by the event handler to manage the Windows socket API call for the socket connection to the individual client socket.

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 SocketThread parameter is assigned the value of a TServerClientThread object or that of an object derived from this class, which handles an individual client connection.

Applications can create and customize the properties of a TServerClientThread object in an OnGetThread event handler of the TServerWinSocket type.

See Also