MADARA  3.4.1
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  {
29  ERROR_UDP_NOT_STARTED = -1,
30  };
31 
32  static const int PROFILES = 1;
33 
43  bool launch_transport);
44 
50  long send_data(
51  const madara::knowledge::KnowledgeMap& updates) override;
52 
53  int setup(void) override;
54 
55 protected:
56  size_t server_count_;
57 
59 };
60 }
61 }
62 
63 #endif // _MADARA_UDP_REGISTRY_SERVER_H_
This class stores variables and their values for use by any entity needing state information in a thr...
This class stores a map of strings to KaRL variables.
Definition: Map.h:33
Holds basic transport settings.
UDP-based server that handles a registry of UDP endpoints, which makes it ideal for any NAT-protected...
knowledge::containers::Map endpoints_
UDP-based transport for knowledge.
Definition: UdpTransport.h:39
constexpr string_t string
::std::map< std::string, KnowledgeRecord > KnowledgeMap
Copyright(c) 2020 Galois.