Now you can download a copy of these docs so you can use them offline! Download now
ConnectionAdapter.h
1 /*
2  * ConnectionAdapter.h
3  *
4  * Created on: Sep 16, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #ifndef CONNECTIONADAPTER_H_
9 #define CONNECTIONADAPTER_H_
10 
11 class ConnectionAdapter;
12 
13 #include "networktables2/NetworkTableEntry.h"
14 #include "networktables2/connection/BadMessageException.h"
15 #include "networktables2/util/IOException.h"
16 #include "tables/ITable.h"
17 
19 {
20 public:
21  virtual ~ConnectionAdapter()
22  {
23  }
24  //returns true if the connection should still be alive
25  virtual bool keepAlive() = 0;
26  virtual void clientHello(ProtocolVersion protocolRevision) = 0;
27  virtual void serverHelloComplete() = 0;
28  virtual void protocolVersionUnsupported(ProtocolVersion protocolRevision) = 0;
29  virtual void offerIncomingAssignment(NetworkTableEntry* newEntry) = 0;
30  virtual void offerIncomingUpdate(NetworkTableEntry* newEntry, SequenceNumber sequenceNumber, EntryValue value) = 0;
31  virtual NetworkTableEntry* GetEntry(EntryId) = 0;
32 
37  virtual void badMessage(BadMessageException& e) = 0;
38 
43  virtual void ioException(IOException& e) = 0;
44 };
45 
46 #endif /* CONNECTIONADAPTER_H_ */
virtual void badMessage(BadMessageException &e)=0
virtual void ioException(IOException &e)=0
Definition: ITable.h:13

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