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
server
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
13
class
ServerConnectionList
;
14
class
ServerIncomingStreamMonitor
;
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
30
class
ServerConnectionList
:
public
FlushableOutgoingEntryReceiver
,
public
ServerAdapterManager
{
31
private
:
32
NTReentrantSemaphore
connectionsLock;
33
std::vector<ServerConnectionAdapter*> connections;
34
ServerIncomingStreamMonitor
*
const
m_Factory;
//make call to close connection
35
public
:
36
ServerConnectionList
(
ServerIncomingStreamMonitor
*Factory);
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_ */
ServerConnectionAdapter
Definition:
ServerConnectionAdapter.h:33
ServerConnectionList
Definition:
ServerConnectionList.h:30
ServerConnectionList::close
void close(ServerConnectionAdapter &connectionAdapter, bool closeStream)
Definition:
ServerConnectionList.cpp:30
NTReentrantSemaphore
Definition:
OSAL/Synchronized.h:43
FlushableOutgoingEntryReceiver
Definition:
FlushableOutgoingEntryReceiver.h:15
ServerIncomingStreamMonitor
Definition:
ServerIncomingStreamMonitor.h:32
NetworkTableEntry
Definition:
NetworkTableEntry.h:30
ServerConnectionList::add
void add(ServerConnectionAdapter &connection)
Definition:
ServerConnectionList.cpp:24
ServerAdapterManager
Definition:
ServerAdapterManager.h:21
ServerConnectionList::closeAll
void closeAll()
Definition:
ServerConnectionList.cpp:45
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.