SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_connect Event

Reports an accepted connection.

Syntax

class HTTPServerConnectEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def remote_address() -> str: ...
  @property
  def remote_port() -> int: ...

# In class HTTPServer:
@property
def on_connect() -> Callable[[HTTPServerConnectEventParams], None]: ...
@on_connect.setter
def on_connect(event_hook: Callable[[HTTPServerConnectEventParams], 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_get_request or on_auth_attempt.

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