IPWorks SNMP 2020 Kotlin Edition

Questions / Feedback?

Connected Event

Fired immediately after a connection completes (or fails).

Syntax

public open class DefaultSnmptcptrapmgrEventListener : SnmptcptrapmgrEventListener {
  ...
  public override fun connected(e: SnmptcptrapmgrConnectedEvent) {}
  ...
}

public class SnmptcptrapmgrConnectedEvent {
  val remoteAddress: String?
  val remotePort: Int
  val statusCode: Int
  val description: String?
}

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) 2021 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Kotlin Edition - Version 20.0 [Build 7941]