Changes remote_name to remote_ip (#87)

Was confusing, as remote_name seemed like a name but wasn't.
Also changes remote_ip in the C api to use an NT_String
This commit is contained in:
Thad House
2016-08-07 14:38:20 -07:00
committed by Peter Johnson
parent 0f9f7309e3
commit bc99d341fb
5 changed files with 10 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ struct NT_EntryInfo {
/** NetworkTables Connection Information */
struct NT_ConnectionInfo {
struct NT_String remote_id;
char *remote_name;
struct NT_String remote_ip;
unsigned int remote_port;
unsigned long long last_update;
unsigned int protocol_version;
@@ -185,7 +185,7 @@ void NT_GetEntryValue(const char *name, size_t name_len,
* @param default_value value to be set if name does not exist
* @return 0 on error (value not set), 1 on success
*/
int NT_SetDefaultEntryValue(const char* name, size_t name_len,
int NT_SetDefaultEntryValue(const char *name, size_t name_len,
const struct NT_Value *default_value);
/** Set Entry Value.

View File

@@ -42,7 +42,7 @@ struct EntryInfo {
/** NetworkTables Connection Information */
struct ConnectionInfo {
std::string remote_id;
std::string remote_name;
std::string remote_ip;
unsigned int remote_port;
unsigned long long last_update;
unsigned int protocol_version;