SecureBlackbox Lite 2020 Python Edition

Questions / Feedback?

on_data_sent Event

Notifies the application that a piece of data has been sent to the server.

Syntax

class SSHClientDataSentEventParams(object):
  @property
  def bytes_sent() -> int: ...
  @property
  def bytes_pending() -> int: ...

# In class SSHClient:
@property
def on_data_sent() -> Callable[[SSHClientDataSentEventParams], None]: ...
@on_data_sent.setter
def on_data_sent(event_hook: Callable[[SSHClientDataSentEventParams], None]) -> None: ...

Remarks

Subscribe to this event to be notified about the outbound data flow. This event fires following a call to send or send_bytes methods to notify the application that the data provided has been sent to the server. This event may fire more than once for each send or send_bytes call, subject to the volume of data being sent and the settings of the server.

The BytesSent parameter specifies the number of bytes that has just been sent to the server. The BytesPending indicate the number of bytes that remain cached in the internal buffer. Any bytes cached in such way will be sent again on the next available opportunity and reported via a separate on_data_sent event invocation.

Please note that just like other asynchronous mode events this event may fire from a secondary thread. Please make sure your code is prepared for that by using appropriate synchronization facilities.

This event does not fire in synchronous mode.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 Python Edition - Version 20.0 [Build 8166]