SSHChannelOpened Event
Fired when a channel is successfully opened.
Syntax
ANSI (Cross Platform) virtual int FireSSHChannelOpened(SSHReverseTunnelSSHChannelOpenedEventParams *e);
typedef struct {
const char *ChannelId; int reserved; } SSHReverseTunnelSSHChannelOpenedEventParams; Unicode (Windows) virtual INT FireSSHChannelOpened(SSHReverseTunnelSSHChannelOpenedEventParams *e);
typedef struct {
LPCWSTR ChannelId; INT reserved; } SSHReverseTunnelSSHChannelOpenedEventParams;
- (void)onSSHChannelOpened:(NSString*)channelId;
#define EID_SSHREVERSETUNNEL_SSHCHANNELOPENED 10 virtual INT IPWORKSSSH_CALL FireSSHChannelOpened(LPSTR &lpszChannelId);
Remarks
The SSHChannelOpened event is fired when a channel is successfully opened on an SSH connection.
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.