1 #ifndef _MADARA_UDP_REGISTRY_SERVER_H_ 2 #define _MADARA_UDP_REGISTRY_SERVER_H_ 6 #include "madara/MADARA_export.h" 15 #include "ace/INET_Addr.h" 16 #include "ace/SOCK_Dgram.h" 37 ERROR_UDP_NOT_STARTED = -1,
40 static const int PROFILES = 1;
70 int reliability (
void)
const;
77 int reliability (
const int & setting);
90 std::map <std::string, ACE_INET_Addr>
servers_;
93 std::map <std::string, ACE_INET_Addr>
clients_;
106 #endif // _MADARA_UDP_REGISTRY_SERVER_H_ knowledge::KnowledgeBase knowledge_
knowledge base for threads to use
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_
This class stores a map of strings to KaRL variables.
This class provides a distributed knowledge base to users.
::std::map< std::string, KnowledgeRecord * > KnowledgeRecords
std::map< std::string, ACE_INET_Addr > clients_
registry clients
ACE_SOCK_Dgram read_socket_
The socket we are reading from.
Starts threads with first class support of MADARA contexts.
std::map< std::string, ACE_INET_Addr > servers_
registry servers
ACE_SOCK_Dgram write_socket_
underlying socket for sending
Copyright (c) 2015 Carnegie Mellon University.
Base class from which all transports must be derived.
UDP-based server that handles a registry of UDP endpoints, which makes it ideal for any NAT-protected...
threads::Threader read_threads_
threads for reading knowledge updates