8 // Helper class that associates instances of itself with each host.
9 // Facilitate global operations on hosts, and retreiving of host name
14 static void destroy();
15 static size_t size() { return hosts.size(); }
16 static const hostdata& at(size_t i) { return hosts[i]; }
18 hostdata(m_host_t host);
21 const char* get_name() const { return name; }
22 const char* get_ctrl_mbox() const { return ctrl_mbox.c_str(); }
23 const char* get_data_mbox() const { return data_mbox.c_str(); }
26 // static list of hostdata's, used by create/destroy
27 static std::vector<hostdata> hosts;
30 std::string ctrl_mbox;
31 std::string data_mbox;