Internet Direct (Indy) Version 9.0.2 Beta
MClientThread.Execute
Implements the processing loop for the thread.

procedure Execute; override;
Description
Execute is a procedure used by MClientThread to implement the processing logic that allows the thread to communicate with service threads for the tunnel connection. Execute will listen for OutboundClient messages until the client requests disconnect, or until the thread is Terminated by either the server or the service thread.

Execute constructs the IdHeader.MsgType and the IdHeader.UserID for the OutboundClient message, and calls MasterParent.SendMsg to write the message to the tunnel connection.

When the thread is Terminated, Execute will set SelfDisconnected to True prior to exiting the method.