TServerClientThread = class(TThread)
class PASCALIMPLEMENTATION TServerClientThread : public System::Classes::TThread
TServerClientThread is an execution thread used for a single connection to a client socket accepted by a Windows server socket.
TServerWinSocket objects spawn TServerClientThread objects to handle separate client connections in separate execution threads. This allows server sockets to perform slow reading and writing operations with client sockets without adversely affecting the performance on other connections.
TServerClientThread introduces new properties to
Store and access thread-specific data.
Determine if the thread is stored in a thread cache maintained by the TServerWinSocket.
Applications that receive frequent client requests will want to derive a descendant class from TServerClientThread to handle reading and writing to separate clients. This is because TServerClientThread objects use the OnClientRead and OnClientWrite events of the associated server socket. These events are not thread-local.