on_connect Event
Reports an accepted connection.
Syntax
class FTPServerConnectEventParams(object): @property def connection_id() -> int: ... @property def remote_address() -> str: ... @property def port() -> int: ... # In class FTPServer: @property def on_connect() -> Callable[[FTPServerConnectEventParams], None]: ... @on_connect.setter def on_connect(event_hook: Callable[[FTPServerConnectEventParams], None]) -> None: ...
Remarks
The class fires this event to report that a new connection has been established. ConnectionId indicates the unique ID assigned to this connection. The same ID will be supplied to any other events related to this connection, such as on_auth_attempt or on_before_upload_file.