public final class ConnectionInfo extends 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.
|
String |
remote_id
The remote identifier (as set on the remote node by
NetworkTableInstance.setNetworkIdentity(String) ). |
String |
remote_ip
The IP address of the remote node.
|
int |
remote_port
The port number of the remote node.
|
Constructor and Description |
---|
ConnectionInfo(String remoteId,
String remoteIp,
int remotePort,
long lastUpdate,
int protocolVersion)
Constructor.
|
public final String remote_id
NetworkTableInstance.setNetworkIdentity(String)
).public final String remote_ip
public final int remote_port
public final long last_update
NetworkTablesJNI.now()
).public final int protocol_version
public ConnectionInfo(String remoteId, 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