Loading [MathJax]/extensions/tex2jax.js
WPILibC++ 2025.2.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
nt::ConnectionInfo Struct Reference

NetworkTables Connection Information. More...

#include <ntcore_cpp.h>

Public Attributes

std::string remote_id
 The remote identifier (as set on the remote node by NetworkTableInstance::StartClient4() or nt::StartClient4()).
 
std::string remote_ip
 The IP address of the remote node.
 
unsigned int remote_port {0}
 The port number of the remote node.
 
int64_t last_update {0}
 The last time any update was received from the remote node (same scale as returned by nt::Now()).
 
unsigned int protocol_version {0}
 The protocol version being used for this connection.
 

Friends

void swap (ConnectionInfo &first, ConnectionInfo &second)
 

Detailed Description

NetworkTables Connection Information.

Friends And Related Symbol Documentation

◆ swap

void swap ( ConnectionInfo & first,
ConnectionInfo & second )
friend

Member Data Documentation

◆ last_update

int64_t nt::ConnectionInfo::last_update {0}

The last time any update was received from the remote node (same scale as returned by nt::Now()).

◆ protocol_version

unsigned int nt::ConnectionInfo::protocol_version {0}

The protocol version being used for this connection.

This in protocol layer format, so 0x0200 = 2.0, 0x0300 = 3.0).

◆ remote_id

std::string nt::ConnectionInfo::remote_id

The remote identifier (as set on the remote node by NetworkTableInstance::StartClient4() or nt::StartClient4()).

◆ remote_ip

std::string nt::ConnectionInfo::remote_ip

The IP address of the remote node.

◆ remote_port

unsigned int nt::ConnectionInfo::remote_port {0}

The port number of the remote node.


The documentation for this struct was generated from the following file: