Indy 9
TIdTelnetReadThread
Hierarchy, Properties, Methods, Events, See Also, Unit: IdTelnet
TELNET client thread that listens for responses to key input and protocol negotiations.
TIdTelnetReadThread = class(TIdThread)
Unit
IdTelnet
Description
TIdTelnetReadThread is a TIdThread descendant that represents the thread of execution in the TIdTelnet client that listens for responses to key input and protocol option negotiations.

TIdTelnetReadThread implements the thread handling framework inherited from TIdThread to control execution of the thread.

TIdTelnetReadThread is used by the OnDataAvailable event handler in TIdTelnet to perform read operations for the TELNET client.

Do not create instances of TIdTelnetReadThread. TIdTelnet creates an instance of TIdTelnetReadThread when the client is connected to the host.


TIdTelnetReadThread.Client
TIdTelnetReadThread, See Also
Represents the TELNET client for the read thread.
property Client: TIdTelnet;
Description
Client is a read-only TIdTelnet property that represents the TELNET client that is the owner of the thread. Client is assigned in the Create consteructor for the read thread, and allows the thread to access properties and methods of the TELNET client during execution. This includes filtering incoming data by triggering the TIdTelnet.OnDataAvailable event handler for textual data, and checking for disconnects for the client socket connection.

TIdTelnetReadThread.RecvData
TIdTelnetReadThread, See Also
Contains data read bny the read thread for the TELNET client.
property RecvData: String;
Description
RecvData is a String property that represents the data read by the thread for the TELNET client. RecvData is updated during execution of the read thread, and contains the value returned after filtering the receive buffer for the TIdTelnet client. RecvData is provided as a parameter when the TIdTelnet.OnDataAvailable event handler is triggered during execution of the client read thread.

TIdTelnetReadThread.Create
TIdTelnetReadThread
Creates a new TIdTelnetReadThread instance.
constructor Create(AClient: TIdTelnet); reintroduce;
Parameters
AClient: TIdTelnet
TELNET client serviced by this thread.
Description
Create is the constructor for the TIdTelnetReadThread instance, and relies on the inherited Create constructor to initialize the thread. TIdTelnetReadThread stores a reference to the TIdTelnet client that is the recipient of data read by the thread.

TIdTelnetReadThread sets the FreeOnTerminate property to True, to indicate that the thread should be freed when execution has been completed.

You should not need to create an instance of this object directly. Instances of this object are created when the TIdTelnet client connects to the host.


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