WPILibC++ 2024.3.2
NT_Event Struct Reference

NetworkTables event. More...

#include <ntcore_c.h>

Public Attributes

NT_Handle listener
 Listener that triggered this event. More...
 
unsigned int flags
 Event flags (NT_EventFlags). More...
 
union {
   struct NT_ConnectionInfo   connInfo
 
   struct NT_TopicInfo   topicInfo
 
   struct NT_ValueEventData   valueData
 
   struct NT_LogMessage   logMessage
 
   struct NT_TimeSyncEventData   timeSyncData
 
data
 Event data; content depends on flags. More...
 

Detailed Description

NetworkTables event.

Member Data Documentation

◆ connInfo

struct NT_ConnectionInfo NT_Event::connInfo

◆ 

union { ... } NT_Event::data

Event data; content depends on flags.

◆ flags

unsigned int NT_Event::flags

Event flags (NT_EventFlags).

Also indicates the data included with the event:

  • NT_EVENT_CONNECTED or NT_EVENT_DISCONNECTED: connInfo
  • NT_EVENT_PUBLISH, NT_EVENT_UNPUBLISH, or NT_EVENT_PROPERTIES: topicInfo
  • NT_EVENT_VALUE_REMOTE, NT_NOTIFY_VALUE_LOCAL: valueData
  • NT_EVENT_LOGMESSAGE: logMessage
  • NT_EVENT_TIMESYNC: timeSyncData

◆ listener

NT_Handle NT_Event::listener

Listener that triggered this event.

◆ logMessage

struct NT_LogMessage NT_Event::logMessage

◆ timeSyncData

struct NT_TimeSyncEventData NT_Event::timeSyncData

◆ topicInfo

struct NT_TopicInfo NT_Event::topicInfo

◆ valueData

struct NT_ValueEventData NT_Event::valueData

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