msg.capabilities = htonl (GSE_node_capabilities);
msg.issuer_count = htonl (GSE_my_issuer_count);
memcpy (buf, &msg, msg_size);
- memcpy (&buf[msg_size], GSE_my_issuer, ri_size);
+ memcpy (&((char *) buf)[msg_size], GSE_my_issuer, ri_size);
GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Sending request to peer %s\n"),
GNUNET_i2s (&n->id));
msg.capabilities = htonl (GSE_node_capabilities);
msg.issuer_count = htonl (GSE_my_issuer_count);
memcpy (buf, &msg, msg_size);
- memcpy (&buf[msg_size], GSE_my_issuer, ri_size);
+ memcpy (&((char *) buf)[msg_size], GSE_my_issuer, ri_size);
GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Sending response to peer %s\n"),
GNUNET_i2s (&n->id));
GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Starting experiment `%s' with peer %s\n"),
e->name,
GNUNET_i2s (&n->id));
- //GNUNET_EXPERIMENTATION_scheduler_add (e);
+
+ /* Request experiment */
+ GNUNET_EXPERIMENTATION_scheduler_add (n, e);
+
counter ++;
}
}
+void
+GNUNET_EXPERIMENT_nodes_request_start (struct Node *n, struct Experiment *e)
+{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Sending start request to peer `%s' for experiment `%s'\n"),
+ GNUNET_i2s(&n->id), e->name);
+}
+
/**
* Start the nodes management