SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_command_received Event

Signals that a command has been received from the client.

Syntax

class FTPServerCommandReceivedEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def command() -> str: ...
  @property
  def parameters() -> str: ...
  @property
  def ignore() -> bool: ...
  @ignore.setter
  def ignore(value) -> None: ...

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

Remarks

The class fires this event to notify the application of an incoming command. Set Ignore to True to stop the server from handling the command.

When the command has been processed, the server will report it via the on_command_processed call.

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