RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerSocketThread.ServerSocket Property

Specifies the TCustomTcpServer object that manages all the TClientSocketThread objects for its client connections.

Pascal
property ServerSocket: TCustomTcpServer;
C++
__property TCustomTcpServer ServerSocket;

Use ServerSocket to get direct access to the listening socket object that spawned the thread for a client connection it accepted. TServerSocketThread passes events and errors to the appropriate event handlers assigned to ServerSocket. TServerSocketThread adds itself to the cache of threads maintained by ServerSocket from its constructor, and removes itself when the thread terminates. 

 

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