Internet Direct (Indy) Version 9.0.2 Beta
TIdRSHCommandEvent
Event type signalled to allow command execution for a RSH session.

TIdRSHCommandEvent = procedure (AThread: TIdPeerThread; AStdError : TIdTCPClient; AClientUserName, AHostUserName, ACommand : String) of object;
Description
TIdRSHCommandEvent is an event type signalled to indicate that the RSH Daemon needs to execute a command or service request for a client connection. TIdRSHCommandEvent is the event type signalled to the the TIdRSHServer.OnCommand event handler during execution of the client thread.

Applications must assign a procedure to the TIdRSHCommandEvent event handler to allow responding to the event notification. The event handler can access the connection for the RSH session using AThread, or the connection for redirected standard error output using AStdError.