#include "neighbor.h"
+#include <limits>
+#include <msg/msg.h>
+
neighbor::neighbor(const char* hostname)
- : name(hostname)
- , ctrl_mbox(hostname)
- , data_mbox(hostname)
+ : host((hostdata* )MSG_host_get_data(MSG_get_host_by_name(hostname)))
, load(std::numeric_limits<double>::infinity())
, debt(0.0)
+ , to_send(0.0)
{
- ctrl_mbox += "_ctrl";
- data_mbox += "_data";
}
neighbor::~neighbor()