Now you can download a copy of these docs so you can use them offline! Download now
NetworkTableConnection.h
1 
9 #ifndef NETWORK_TABLE_CONNECTION_H_
10 #define NETWORK_TABLE_CONNECTION_H_
11 
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include "OSAL/Synchronized.h"
15 #ifndef _WRS_KERNEL
16 #include <stdint.h>
17 #endif
18 
20 typedef uint16_t ProtocolVersion;
21 
22 #include "networktables2/connection/DataIOStream.h"
23 #include "networktables2/NetworkTableEntry.h"
24 #include "networktables2/type/NetworkTableEntryType.h"
25 #include "networktables2/type/NetworkTableEntryTypeManager.h"
26 #include "networktables2/connection/ConnectionAdapter.h"
27 #include "networktables2/NetworkTableMessageType.h"
28 
29 
31 public:
32  static const ProtocolVersion PROTOCOL_REVISION = 0x0200;
33 
36  void close();
37  void flush();
38  void sendKeepAlive();
39  void sendClientHello();
40  void sendServerHelloComplete();
41  void sendProtocolVersionUnsupported();
42  void sendEntryAssignment(NetworkTableEntry& entry);
43  void sendEntryUpdate(NetworkTableEntry& entry);
44  void read(ConnectionAdapter& adapter);
45  void SetIOStream(IOStream* stream);
46 private:
47  NTReentrantSemaphore WRITE_LOCK;
48  DataIOStream* const ioStream;
49  NetworkTableEntryTypeManager& typeManager;
50  bool isValid;
51 
52  void sendMessageHeader(NetworkTableMessageType messageType);
53 };
54 
55 
56 
57 #endif
NetworkTableConnection(IOStream *stream, NetworkTableEntryTypeManager &typeManager)

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6