Now you can download a copy of these docs so you can use them offline! Download now
ServerConnectionList.h
1 /*
2  * ServerConnectionList.h
3  *
4  * Created on: Sep 26, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #ifndef SERVERCONNECTIONLIST_H_
9 #define SERVERCONNECTIONLIST_H_
10 
11 
12 
15 
16 #include "networktables2/FlushableOutgoingEntryReceiver.h"
17 #include "networktables2/NetworkTableEntry.h"
18 #include "networktables2/server/ServerAdapterManager.h"
19 #include "networktables2/server/ServerConnectionAdapter.h"
20 #include <vector>
21 
22 
23 
31 private:
32  NTReentrantSemaphore connectionsLock;
33  std::vector<ServerConnectionAdapter*> connections;
34  ServerIncomingStreamMonitor * const m_Factory; //make call to close connection
35 public:
37  virtual ~ServerConnectionList();
42  void add(ServerConnectionAdapter& connection);
43 
44 
45  void close(ServerConnectionAdapter& connectionAdapter, bool closeStream);
49  void closeAll();
50 
51  void offerOutgoingAssignment(NetworkTableEntry* entry);
52  void offerOutgoingUpdate(NetworkTableEntry* entry);
53  void flush();
54  void ensureAlive();
55 };
56 
57 
58 
59 #endif /* SERVERCONNECTIONLIST_H_ */
void close(ServerConnectionAdapter &connectionAdapter, bool closeStream)
void add(ServerConnectionAdapter &connection)

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