ScktComp.TGetThreadEvent

From RAD Studio VCL Reference
Jump to: navigation, search

C++ Information

From ScktComp.hpp

	typedef TGetThreadEvent TGetThreadEvent;


Unit: ScktComp

Type: typedef

Description

The type for event handlers which respond to events during the execution of threads which 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 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

Personal tools
Translations
Newest Version