public final class ConnectionInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
last_update
The last time any update was received from the remote node (same scale as
returned by
NetworkTablesJNI.now() ). |
int |
protocol_version
The protocol version being used for this connection.
|
java.lang.String |
remote_id
The remote identifier (as set on the remote node by
NetworkTableInstance.setNetworkIdentity(String) ). |
java.lang.String |
remote_ip
The IP address of the remote node.
|
int |
remote_port
The port number of the remote node.
|
Constructor and Description |
---|
ConnectionInfo(java.lang.String remoteId,
java.lang.String remoteIp,
int remotePort,
long lastUpdate,
int protocolVersion)
Constructor.
|
public final java.lang.String remote_id
NetworkTableInstance.setNetworkIdentity(String)
).public final java.lang.String remote_ip
public final int remote_port
public final long last_update
NetworkTablesJNI.now()
).public final int protocol_version
public ConnectionInfo(java.lang.String remoteId, java.lang.String remoteIp, int remotePort, long lastUpdate, int protocolVersion)
remoteId
- Remote identifierremoteIp
- Remote IP addressremotePort
- Remote port numberlastUpdate
- Last time an update was receivedprotocolVersion
- The protocol version used for the connection