+#include "communicator.h"
+
#include <algorithm>
#include <tr1/functional>
#include <sstream>
#include <msg/msg.h>
#include <xbt/log.h>
-#include "communicator.h"
#include "simgrid_features.h"
#include "misc.h"
}
communicator::communicator()
+ : host((hostdata* )MSG_host_get_data(MSG_host_self()))
+ , ctrl_task(NULL)
+ , ctrl_comm(NULL)
+ , ctrl_close_is_last(false)
+ , data_task(NULL)
+ , data_comm(NULL)
+ , data_close_is_last(false)
{
- const char* hostname = MSG_host_get_name(MSG_host_self());
-
- ctrl_mbox = hostname;
- ctrl_mbox += "_ctrl";
- ctrl_task = NULL;
- ctrl_comm = NULL;
- ctrl_close_is_last = false;
-
- data_mbox = hostname;
- data_mbox += "_data";
- data_task = NULL;
- data_comm = NULL;
- data_close_is_last = false;
}
communicator::~communicator()