MADARA  3.2.3
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  ERROR_UDP_NOT_STARTED = -1,
36  };
37 
38  static const int PROFILES = 1;
39 
47  UdpRegistryClient (const std::string & id,
49  TransportSettings & config, bool launch_transport);
50 
54  void send_register (void);
55 
61  long send_data (const madara::knowledge::VariableReferenceMap & updates) override;
62 
63  int setup (void) override;
64 
65  protected:
67  std::vector <udp::endpoint> servers_;
68 
70  };
71  }
72 }
73 
74 #endif // _MADARA_UDP_REGISTRY_CLIENT_TRANSPORT_H_
knowledge::containers::Map endpoints_
std::vector< udp::endpoint > servers_
registry servers
This class stores variables and their values for use by any entity needing state information in a thr...
Holds basic transport settings.
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.
UDP-based transport for knowledge.
Definition: UdpTransport.h:37