RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerWinSocket.GetClientThread Method

Returns the execution thread used by the client connection managed by the ClientSocket parameter.

Pascal
function GetClientThread(ClientSocket: TServerClientWinSocket): TServerClientThread;
C++
__fastcall TServerClientThread GetClientThread(TServerClientWinSocket ClientSocket);

Use GetClientThread to obtain access to the TServerClientThread for a particular client connection. GetClientThread allows an OnClient... event handler to access thread-global information saved in the Data property of the thread. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!