- neighbor(const char* const name_)
- : name(name_)
- , load(std::numeric_limits<double>::infinity()) {
- }
- const std::string& getName() const { return name; }
- double getLoad() const { return load; }
- void setLoad(double l) { load = l; }
+ neighbor(const char* hostname);
+ ~neighbor();
+
+ const char* get_name() const { return name.c_str(); }
+ const char* get_ctrl_mbox() const { return ctrl_mbox.c_str(); }
+ const char* get_data_mbox() const { return data_mbox.c_str(); }
+
+ double get_load() const { return load; }
+ void set_load(double l) { load = l; }
+
+ double get_debt() const { return debt; }
+ void set_debt(double d) { debt = d; }