Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
networktables2
connection
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
19
class
NetworkTableConnection
;
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
30
class
NetworkTableConnection
{
31
public
:
32
static
const
ProtocolVersion PROTOCOL_REVISION = 0x0200;
33
34
NetworkTableConnection
(
IOStream
* stream,
NetworkTableEntryTypeManager
& typeManager);
35
~
NetworkTableConnection
();
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
NTReentrantSemaphore
Definition:
OSAL/Synchronized.h:43
DataIOStream
Definition:
DataIOStream.h:30
IOStream
Definition:
IOStream.h:13
NetworkTableEntryTypeManager
Definition:
NetworkTableEntryTypeManager.h:15
NetworkTableConnection::NetworkTableConnection
NetworkTableConnection(IOStream *stream, NetworkTableEntryTypeManager &typeManager)
Definition:
NetworkTableConnection.cpp:12
NetworkTableEntry
Definition:
NetworkTableEntry.h:30
ConnectionAdapter
Definition:
ConnectionAdapter.h:18
NetworkTableConnection
Definition:
NetworkTableConnection.h:30
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.