IPWorks EDI 2020 Python Edition

Questions / Feedback?

on_ready_to_send Event

Fired when the class is ready to send data.

Syntax

class OFTPServerReadyToSendEventParams(object):
  @property
  def connection_id() -> int: ...

# In class OFTPServer:
@property
def on_ready_to_send() -> Callable[[OFTPServerReadyToSendEventParams], None]: ...
@on_ready_to_send.setter
def on_ready_to_send(event_hook: Callable[[OFTPServerReadyToSendEventParams], None]) -> None: ...

Remarks

The on_ready_to_send event indicates that the connected client is in a state where it can accept files sent from the server. When a client connects initially it will not be ready to receive files. After the client sends files (if any) to the server it will pass control to the server. At that time the ReadyToSend event will fire. In addition the oftp_connection_ready_to_send property will be set to true for the connection.

After this event fires send_file can be called to send files to the connected client.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Python Edition - Version 20.0 [Build 8203]