SSHChannelOpened Event

Fired when a channel is successfully opened.

Syntax

ANSI (Cross Platform)
virtual int FireSSHChannelOpened(SSHDaemonSSHChannelOpenedEventParams *e);
typedef struct {
int ConnectionId;
int ChannelId; int reserved; } SSHDaemonSSHChannelOpenedEventParams; Unicode (Windows) virtual INT FireSSHChannelOpened(SSHDaemonSSHChannelOpenedEventParams *e);
typedef struct {
INT ConnectionId;
INT ChannelId; INT reserved; } SSHDaemonSSHChannelOpenedEventParams;
- (void)onSSHChannelOpened:(int)connectionId :(int)channelId;
#define EID_SSHDAEMON_SSHCHANNELOPENED 9

virtual INT IPWORKSSSH_CALL FireSSHChannelOpened(INT &iConnectionId, INT &iChannelId);

Remarks

The SSHChannelOpened event is fired when a channel is successfully opened 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.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 C++ Edition - Version 20.0 [Build 8501]