SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_accept Event

Reports an incoming connection.

Syntax

class FTPServerAcceptEventParams(object):
  @property
  def remote_address() -> str: ...
  @property
  def remote_port() -> int: ...
  @property
  def accept() -> bool: ...
  @accept.setter
  def accept(value) -> None: ...

# In class FTPServer:
@property
def on_accept() -> Callable[[FTPServerAcceptEventParams], None]: ...
@on_accept.setter
def on_accept(event_hook: Callable[[FTPServerAcceptEventParams], None]) -> None: ...

Remarks

This event is fired when a new connection from RemoteAddress:RemotePort is ready to be accepted. Use the Accept parameter to accept or decline it.

Subscribe to on_connect event to be notified of every connection that has been set up.

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