Internet Direct (Indy)
Home
PreviousUpNext
TIdRemoteCMDServer.SendResults Method

Sends the results from remote command execution to a client connection.

Pascal
procedure SendResults(
    AThread: TIdContext; 
    AStdErr: TIdTCPClient; 
    AMsg: String
);
Parameters 
Description 
AThread 
Client connection context for the error message. 
AStdErr 
Standard error connection to use for the error message. 
AMsg 
Error message to send to the client connection. 

SendResults is a procedure used to send the results from successful execution of command for a client connection to the TIdRemoteCMDServer instance. 

SendResults write a Null character (Decimal 0) to the client connection in AThread to indicate that the remote command was completed successfully, followed by the value in AMsg. 

Use SendError to return an error message that occurs during execution of the command for the client connection.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.