Internet Direct (Indy) Version 9.0.2 Beta
TIdPeerThread.Run
Starts thread execution using the server context.

procedure Run; override;
Description
Run is a procedure found in TIdThread, and descendant classes, that performs the functionality of the thread.

For TIdPeerThread, Run will verify that the thread is executing using the Server context. An EIdSocketError exception is raised if the thread cannot be executed, and the connection is closed. An EIdClosedSocket exception occurs if data is written to a socket that is not connected.

If the connection is closed or aborted, the thread is stopped.