Topic Path: Symbol Reference > Classes > TIdRemoteCMDServer Class > TIdRemoteCMDServer Methods > SendResults Method
TIdRemoteCMDServer.SendResults Method

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

procedure SendResults(
    AThread: TIdContext; 
    AStdErr: TIdTCPClient; 
    AMsg: String
Client connection context for the error message. 
Standard error connection to use for the error message. 
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.

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