IP*Works! SSH V9 - Online Help
IP*Works! SSH V9
Questions / Feedback?

SSHChannelRequested Event

Fired if the SSHChannelRequest was successful, any further processing for the channel request should be done here.

Syntax

type TSSHChannelRequestedEvent = procedure SSHChannelRequested(Sender: TObject; ConnectionId: Integer; ChannelId: Integer; const RequestType: String; Packet: String) of object;
property OnSSHChannelRequested: TSSHChannelRequestedEvent read FOnSSHChannelRequested write FOnSSHChannelRequested;

Remarks

The SSHHost may send requests that affect the status of a particular SSHChannel. Some requests will be automatically handled by the component. However, others may need the attention of the user to be dealt with properly within the scope of the application.

ConnectionId identifies the connection.

ChannelId identifies the channel receiving the request.

Type will contain the type of the request. These types are dependent upon the type of the channel. For example, a "session" channel executing a command on the remote shell may receive an "exit-status" request containing the return code of that command.

RequestData contains the remainder of the original SSH packet. If the request type has specific parameters, they can be parsed out of this data.

Note: Processing long-running requests, including sending channel data, inside this event may cause the underlying transport to stop processing SSH data until the event returns. In order to prevent this from happening, all requests should be processed asynchronously in a separate thread outside of this event.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0