]> AND Private Git Repository - loba.git/blobdiff - neighbor.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Cosmetics...
[loba.git] / neighbor.cpp
index 8715396e9d2be53313dc35c85a34e88b19ba3a8d..3340f8f49678998415d94a3fb9f5b83f43b6128d 100644 (file)
@@ -1,14 +1,14 @@
 #include "neighbor.h"
 
 #include "neighbor.h"
 
+#include <limits>
+#include <msg/msg.h>
+
 neighbor::neighbor(const char* hostname)
 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)
     , load(std::numeric_limits<double>::infinity())
     , debt(0.0)
+    , to_send(0.0)
 {
 {
-    ctrl_mbox += "_ctrl";
-    data_mbox += "_data";
 }
 
 neighbor::~neighbor()
 }
 
 neighbor::~neighbor()