Class ConnectionInfo

java.lang.Object
org.wpilib.networktables.ConnectionInfo

public final class ConnectionInfo extends Object
NetworkTables Connection information.
  • Field Details

    • remoteId

      public final String remoteId
      The remote identifier (as set on the remote node by NetworkTableInstance.startClient(String)).
    • remoteIp

      public final String remoteIp
      The IP address of the remote node.
    • remotePort

      public final int remotePort
      The port number of the remote node.
    • lastUpdate

      public final long lastUpdate
      The last time any update was received from the remote node (same scale as returned by NetworkTablesJNI.now()).
    • protocolVersion

      public final int protocolVersion
      The protocol version being used for this connection. This is in protocol layer format, so 0x0200 = 2.0, 0x0300 = 3.0).
  • Constructor Details

    • ConnectionInfo

      public ConnectionInfo(String remoteId, String remoteIp, int remotePort, long lastUpdate, int protocolVersion)
      Constructor. This should generally only be used internally to NetworkTables.
      Parameters:
      remoteId - Remote identifier
      remoteIp - Remote IP address
      remotePort - Remote port number
      lastUpdate - Last time an update was received
      protocolVersion - The protocol version used for the connection