on_connect Event
This event is fired when a remote connection has been established.
Syntax
class SFTPServerConnectEventParams(object): @property def connection_id() -> int: ... @property def remote_address() -> str: ... @property def remote_port() -> int: ... # In class SFTPServer: @property def on_connect() -> Callable[[SFTPServerConnectEventParams], None]: ... @on_connect.setter def on_connect(event_hook: Callable[[SFTPServerConnectEventParams], None]) -> None: ...
Remarks
ConnectionID contains a session identifier, and RemoteAddress specifies the client's IP address.