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 long
last_update
The last time any update was received from the remote node (same scale as returned byNetworkTablesJNI.now()
).int
protocol_version
The protocol version being used for this connection.String
remote_id
The remote identifier (as set on the remote node byNetworkTableInstance.startClient4(String)
).String
remote_ip
The IP address of the remote node.int
remote_port
The port number of the remote node. -
Constructor Summary
Constructors Constructor Description ConnectionInfo(String remoteId, String remoteIp, int remotePort, long lastUpdate, int protocolVersion)
Constructor. -
Method Summary
-
Field Details
-
remote_id
The remote identifier (as set on the remote node byNetworkTableInstance.startClient4(String)
). -
remote_ip
The IP address of the remote node. -
remote_port
The port number of the remote node. -
last_update
The last time any update was received from the remote node (same scale as returned byNetworkTablesJNI.now()
). -
protocol_version
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 identifierremoteIp
- Remote IP addressremotePort
- Remote port numberlastUpdate
- Last time an update was receivedprotocolVersion
- The protocol version used for the connection
-