Package edu.wpi.first.networktables
Class ConnectionInfo
java.lang.Object
edu.wpi.first.networktables.ConnectionInfo
NetworkTables Connection information.
-
Field Summary
Modifier and TypeFieldDescriptionfinal long
The last time any update was received from the remote node (same scale as returned byNetworkTablesJNI.now()
).final int
The protocol version being used for this connection.final String
The remote identifier (as set on the remote node byNetworkTableInstance.startClient4(String)
).final String
The IP address of the remote node.final int
The port number of the remote node. -
Constructor Summary
ConstructorDescriptionConnectionInfo
(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
-