MADARA  3.4.1
UdpRegistryClient.h
Go to the documentation of this file.
1 #ifndef _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_H_
2 #define _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_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 {
31 class MADARA_EXPORT UdpRegistryClient : public UdpTransport
32 {
33 public:
34  enum
35  {
36  ERROR_UDP_NOT_STARTED = -1,
37  };
38 
39  static const int PROFILES = 1;
40 
50  bool launch_transport);
51 
55  void send_register(void);
56 
62  long send_data(
63  const madara::knowledge::KnowledgeMap& updates) override;
64 
65  int setup(void) override;
66 
67 protected:
69  std::vector<udp::endpoint> servers_;
70 
72 };
73 }
74 }
75 
76 #endif // _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_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 transport for knowledge.
std::vector< udp::endpoint > servers_
registry servers
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.