Indy 9
|
TIdRexecServer = class(TIdRemoteCMDServer)
The REXEC protocol provides remote execution facilities for a command, using authentication based on username and password values. execution. The REXEC daemon performs automatic login, and user authentication when user name and password are provided.
TIdRexecServer implements event handlers that allow notification and execution of a command from a remote client. Client connections to TIdRexecServer may provide a port number to be used for redirect output from the standard error handler, or NULL to indicate that standard error redirection is not required.
A TIdRexecServer implementation may assign a procedure to the OnCommand event handler to OnCommand to control execution of the client thread.
property DefaultPort: integer;
The default value for DefaultPort is Id_PORT_exec as assigned in the Create method.
constructor Create(AOwner: TComponent); override;
Create sets the value in ForcePortsInRange to False, since the RExec protocol does not require that port numbers for client connections reside in a specific range.
property OnCommand: TIdRexecCommandEvent;
The TIdRexecServer implementation must assign a procedure to the event handler to allow responding to the event notification.