Indy 9 | Content | Index | Reference

TIdPeerThread
Hierarchy, Properties, Methods, Events, See Also, Unit: IdTCPServer
Thread used for client connections.

    TIdPeerThread = class(TIdThread)

Unit
IdTCPServer
Description
TIdPeerThread is a thread that is created for every connection made to the TIdTCPServer. Every client connection runs in it's own thread on the TIdTCPServer.

Requests for TIdPeerThreads are created by a TIdListenerThread, and are delegated to the TIdThreadMgr for the TCP server.

TIdPeerThread.Connection
TIdPeerThread, See Also, Example
Encapsulates server access within a thread.

    property Connection: TIdTCPServerConnection;

Description
Connection is a read-only TIdTCPServerConnection property used to encapsulate access to the TCP server from within a thread. When the thread is executed, Connection provides the server context for the thread.

Requests for TIdPeerThreads are created by a TIdListenerThread, and are delegated to the TIdThreadMgr for the TCP server.

In TIdPeerThread, Connection is owned by the Connection.Server that is the end-point of the connection.

Connection can be used to access properties, methods, and events of the server, and to allow data transmission in a manner similar to a client connection. For example:

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.