on_accept Event
This event is fired when new incoming connection is accepted.
Syntax
class SFTPServerAcceptEventParams(object): @property def remote_address() -> str: ... @property def remote_port() -> int: ... @property def accept() -> bool: ... @accept.setter def accept(value) -> None: ... # In class SFTPServer: @property def on_accept() -> Callable[[SFTPServerAcceptEventParams], None]: ... @on_accept.setter def on_accept(event_hook: Callable[[SFTPServerAcceptEventParams], None]) -> None: ...
Remarks
This event is fired by the class before a new incoming connection is accepted. RemoteAddress contains the IP address of the connecting client. Use the Accept parameter to either accept, or reject the connection.