IPWorks SSH 2020 Python Edition

Questions / Feedback?

on_ssh_channel_data_in Event

Fired when data is received on an SSH channel.

Syntax

class SSHDaemonSSHChannelDataInEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def channel_id() -> int: ...
  @property
  def data() -> bytes: ...

# In class SSHDaemon:
@property
def on_ssh_channel_data_in() -> Callable[[SSHDaemonSSHChannelDataInEventParams], None]: ...
@on_ssh_channel_data_in.setter
def on_ssh_channel_data_in(event_hook: Callable[[SSHDaemonSSHChannelDataInEventParams], None]) -> None: ...

Remarks

Whenever a client sends data to an SSH channel, the on_ssh_channel_data_in event will fire. ChannelId will identify the channel receiving data. Data will contain the raw data being received.

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 Python Edition - Version 20.0 [Build 8501]