2 #include "../messages/message.hh"
7 #include <boost/thread/shared_mutex.hpp>
22 bool try_reuse_client(uint32_t i, std::shared_ptr<std::string>);
23 bool send(uint32_t i, std::shared_ptr<std::string> str);
24 void connect(uint32_t i, std::shared_ptr<Server> server);
28 std::map<uint32_t, std::weak_ptr<Server>> current_servers;
31 boost::shared_mutex rw_lock;
33 std::vector<std::string> nodes;
Definition: netobserver.hh:9
ClientHandler(uint32_t port)
Definition: client_handler.cc:19
void attach(NetObserver *)
Definition: client_handler.cc:25
Definition: message.hh:15
bool send(uint32_t i, messages::Message *m)
Definition: client_handler.cc:100
Definition: client_handler.hh:12
bool send_and_replicate(std::vector< int >, messages::Message *)
Definition: client_handler.cc:128