Indy 9 | Content | Index | Reference

TIdTelnetPeerThread
Hierarchy, Properties, Methods, Events, See Also, Unit: IdTelnetServer
Implements a thread client for TELNET server connections.

    TIdTelnetPeerThread = class(TIdPeerThread)

Unit
IdTelnetServer
Description
TIdTelnetPeerThread is a TIdPeerThread descendant that implements a threaded client used for connection to to a TELNET server. TIdTelnetPeerThread is the class type assigned to the TIdTelnetServer.ThreadClass property, and used when creating new client connections to the server.

TIdTelnetPeerThread provides properties and methods that allow the multi-threaded TIdTelnetServer to perform connection, option negotiation, and authentication for client connections using the TELNET protocol.

TIdTelnetPeerThread also implements the Indy framework for thread execution and management, as defined in the TIdPeerThread ancestor class.

TIdTelnetPeerThread.TelnetData
TIdTelnetPeerThread
Represents account information for the Telnet client connection.

    property TelnetData: TTelnetData;

Description
TelnetData is a read-only TTelnetData property that represents information about the identity and credentials for the threaded client connection. TelnetData is used when the client thread connects to the Telnet server and the TIdTelnetServer.OnAuthentication event handler is used to verifiy the captured user name and password.

TelnetData is created in the Create constructor, and freed in the Destroy method.

TIdTelnetPeerThread.Create
TIdTelnetPeerThread, See Also
Constructor for the object instance.

    constructor Create(ACreateSuspended: Boolean = True); override;

Parameters
ACreateSuspended: Boolean = True
Indicates the TELNET client thread is created in suspended mode.
Description
Create is the constructor for the object instance. Create calls the inherited Create method using the thread creation mode specified in ACreateSuspended. Create also allocates resources required for the TelnetData property prior to exiting from the method.

TIdTelnetPeerThread.Destroy
TIdTelnetPeerThread, See Also
Frees the object instance.

    destructor Destroy; override;

Description
Destroy is the destructor for the object instance. Destroy frees and release resources allocated in the Create constructor orior to calling the inherited Destroy method.

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