SSHChannelClosed Event
Fired when a channel is closed.
Syntax
ANSI (Cross Platform) virtual int FireSSHChannelClosed(SSHDaemonSSHChannelClosedEventParams *e);
typedef struct {
int ConnectionId;
int ChannelId; int reserved; } SSHDaemonSSHChannelClosedEventParams; Unicode (Windows) virtual INT FireSSHChannelClosed(SSHDaemonSSHChannelClosedEventParams *e);
typedef struct {
INT ConnectionId;
INT ChannelId; INT reserved; } SSHDaemonSSHChannelClosedEventParams;
- (void)onSSHChannelClosed:(int)connectionId :(int)channelId;
#define EID_SSHDAEMON_SSHCHANNELCLOSED 6 virtual INT IPWORKSSSH_CALL FireSSHChannelClosed(INT &iConnectionId, INT &iChannelId);
Remarks
The SSHChannelClosed event is fired when a channel is closed on an SSH connection.
ConnectionId identifies the connection. ChannelId identifies the channel.
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.