Topic Path: Symbol Reference > Classes > TIdCommand Class
ContentsIndexHome
PreviousUpNext
TIdCommand Class

Represents a command to be executed for a threaded peer connection.

File
TIdCommand = class(TIdBaseObject);

TIdCommand is class used to represent information about commands received by a TCP server for an exuting peer thread, and handled using a TIdCommandHandler. TIdCommand provides a flexible mechanism for implementing use of command parameters and command responses using command handlers in a multi-thread environment. 

TIdCommand provides properties that identify the Thread generating the command, and the CommandHandler used to service the command. In addition, TIdCommand also implements methods that allow assigning the response for the command, and a mechanism for sending the command reply using the Thread connection that generated the command request. 

TIdCommand instances are created in TIdCommandHandler.Check when a given command can be handled by the CommandHandlers for the server, using the peer thread that is executed in the Server context.

TIdCommandHandler 

TIdRFCReply 

TIdPeerThread 

TIdTCPServer.OnExecute

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.