Internet Direct (Indy) Version 9.0.2 Beta
MClientThread
Performs communication with service threads.

MClientThread = class(TThread)
Description
MClientThread is a TThread descendant that encapsulates the TIdTunnelMaster connection from the client to the service threads for the tunnel master.

MClientThread is used to store references to the TCP client connection to the tunnel server, and the master thread used by the tunnel server to handle client requests.

MClientThread communicates with the tunnel server by reading messages from the outbound TCP client, and constructs headers that encapsulate the message for the tunnel server. When the TCP client is no longer readable, the MClientThread will terminate.

MClientThread notifies the tunnel server when a service thread is disconnected, and allows the tunnel server to maintain the number of connected services.