Package edu.wpi.first.networktables
Class ConnectionInfo
- java.lang.Object
-
- edu.wpi.first.networktables.ConnectionInfo
-
public final class ConnectionInfo extends Object
NetworkTables Connection information.
-
-
Field Summary
Fields Modifier and Type Field Description longlast_updateThe last time any update was received from the remote node (same scale as returned byNetworkTablesJNI.now()).intprotocol_versionThe protocol version being used for this connection.Stringremote_idThe remote identifier (as set on the remote node byNetworkTableInstance.setNetworkIdentity(String)).Stringremote_ipThe IP address of the remote node.intremote_portThe port number of the remote node.
-
Constructor Summary
Constructors Constructor Description ConnectionInfo(String remoteId, String remoteIp, int remotePort, long lastUpdate, int protocolVersion)Constructor.
-
-
-
Field Detail
-
remote_id
public final String remote_id
The remote identifier (as set on the remote node byNetworkTableInstance.setNetworkIdentity(String)).
-
remote_ip
public final String remote_ip
The IP address of the remote node.
-
remote_port
public final int remote_port
The port number of the remote node.
-
last_update
public final long last_update
The last time any update was received from the remote node (same scale as returned byNetworkTablesJNI.now()).
-
protocol_version
public final int protocol_version
The protocol version being used for this connection. This is in protocol layer format, so 0x0200 = 2.0, 0x0300 = 3.0).
-
-
Constructor Detail
-
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 identifierremoteIp- Remote IP addressremotePort- Remote port numberlastUpdate- Last time an update was receivedprotocolVersion- The protocol version used for the connection
-
-