aboutsummaryrefslogtreecommitdiff
path: root/src/multicast/multicast_api.c
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-05-06 10:26:24 +0000
committerGabor X Toth <*@tg-x.net>2014-05-06 10:26:24 +0000
commit4e1baae59f18ee5d7cd47afe28ced3daaaa5a5ad (patch)
tree4e0d4a1bf488d4969f44e3a8db26af6ca22d4db7 /src/multicast/multicast_api.c
parentb2061e704ac6309bb7ee4427a89a1572aa9f339e (diff)
psyc: in-order message delivery
Diffstat (limited to 'src/multicast/multicast_api.c')
-rw-r--r--src/multicast/multicast_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/multicast/multicast_api.c b/src/multicast/multicast_api.c
index b23320c725..da81de4862 100644
--- a/src/multicast/multicast_api.c
+++ b/src/multicast/multicast_api.c
@@ -182,7 +182,7 @@ message_callback (void *cls, const struct GNUNET_HashCode *chan_key_hash,
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Calling origin's message callback "
- "for a message of type %u and size %u.\n",
+ "with a message of type %u and size %u.\n",
ntohs (msg->type), ntohs (msg->size));
struct GNUNET_MULTICAST_Origin *orig = (struct GNUNET_MULTICAST_Origin *) grp;
orig->message_cb (orig->cls, msg);
@@ -190,8 +190,8 @@ message_callback (void *cls, const struct GNUNET_HashCode *chan_key_hash,
else
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Calling slave's message callback "
- "for a message of type %u and size %u.\n",
+ "Calling member's message callback "
+ "with a message of type %u and size %u.\n",
ntohs (msg->type), ntohs (msg->size));
struct GNUNET_MULTICAST_Member *mem = (struct GNUNET_MULTICAST_Member *) grp;
mem->message_cb (mem->cls, msg);
@@ -477,8 +477,8 @@ schedule_origin_to_all (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc
msg->group_generation = mh->group_generation;
/* FIXME: add fragment ID and signature in the service instead of here */
- msg->fragment_id = GNUNET_ntohll (orig->next_fragment_id++);
- msg->fragment_offset = GNUNET_ntohll (mh->fragment_offset);
+ msg->fragment_id = GNUNET_htonll (orig->next_fragment_id++);
+ msg->fragment_offset = GNUNET_htonll (mh->fragment_offset);
mh->fragment_offset += sizeof (*msg) + buf_size;
msg->purpose.size = htonl (sizeof (*msg) + buf_size
- sizeof (msg->header)