IPWorks SNMP 2020 Python Edition

Questions / Feedback?

on_connected Event

Fired immediately after a connection completes (or fails).

Syntax

class SNMPTCPAgentConnectedEventParams(object):
  @property
  def remote_address() -> str: ...
  @property
  def remote_port() -> int: ...
  @property
  def status_code() -> int: ...
  @property
  def description() -> str: ...

# In class SNMPTCPAgent:
@property
def on_connected() -> Callable[[SNMPTCPAgentConnectedEventParams], None]: ...
@on_connected.setter
def on_connected(event_hook: Callable[[SNMPTCPAgentConnectedEventParams], None]) -> None: ...

Remarks

This event fires after a connection completes or fails.

StatusCode is the value returned by the system TCP/IP stack. This will be 0 if the connection was successful.

Description contains a human readable description of the status. This will be "OK" if the connectino was successful.

RemoteAddress is the IP address of the remote host.

RemotePort is the port on the remote host.

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