MADARA  3.2.3
UdpRegistryServer.h
Go to the documentation of this file.
1 #ifndef _MADARA_UDP_REGISTRY_SERVER_H_
2 #define _MADARA_UDP_REGISTRY_SERVER_H_
3 
4 #include <string>
5 
6 #include "madara/MadaraExport.h"
11 
12 #include <string>
13 #include <map>
14 
15 namespace madara
16 {
17  namespace transport
18  {
24  class MADARA_EXPORT UdpRegistryServer : public UdpTransport
25  {
26  public:
27  enum {
28  ERROR_UDP_NOT_STARTED = -1,
29  };
30 
31  static const int PROFILES = 1;
32 
40  UdpRegistryServer (const std::string & id,
42  TransportSettings & config, bool launch_transport);
43 
49  long send_data (const madara::knowledge::VariableReferenceMap & updates) override;
50 
51  int setup (void) override;
52 
53  protected:
54  size_t server_count_;
55 
57  };
58  }
59 }
60 
61 #endif // _MADARA_UDP_REGISTRY_SERVER_H_
This class stores variables and their values for use by any entity needing state information in a thr...
Holds basic transport settings.
knowledge::containers::Map endpoints_
static struct madara::knowledge::tags::string_t string
This class stores a map of strings to KaRL variables.
Definition: Map.h:32
std::map< const char *, VariableReference, VariableReferenceMapCompare > VariableReferenceMap
a map of variable references
Copyright (c) 2015 Carnegie Mellon University.
UDP-based transport for knowledge.
Definition: UdpTransport.h:37
UDP-based server that handles a registry of UDP endpoints, which makes it ideal for any NAT-protected...