aboutsummaryrefslogtreecommitdiff
path: root/src/multicast
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
parentb2061e704ac6309bb7ee4427a89a1572aa9f339e (diff)
downloadgnunet-4e1baae59f18ee5d7cd47afe28ced3daaaa5a5ad.tar.gz
gnunet-4e1baae59f18ee5d7cd47afe28ced3daaaa5a5ad.zip
psyc: in-order message delivery
Diffstat (limited to 'src/multicast')
-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 b23320c72..da81de486 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,
182 { 182 {
183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
184 "Calling origin's message callback " 184 "Calling origin's message callback "
185 "for a message of type %u and size %u.\n", 185 "with a message of type %u and size %u.\n",
186 ntohs (msg->type), ntohs (msg->size)); 186 ntohs (msg->type), ntohs (msg->size));
187 struct GNUNET_MULTICAST_Origin *orig = (struct GNUNET_MULTICAST_Origin *) grp; 187 struct GNUNET_MULTICAST_Origin *orig = (struct GNUNET_MULTICAST_Origin *) grp;
188 orig->message_cb (orig->cls, msg); 188 orig->message_cb (orig->cls, msg);
@@ -190,8 +190,8 @@ message_callback (void *cls, const struct GNUNET_HashCode *chan_key_hash,
190 else 190 else
191 { 191 {
192 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 192 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
193 "Calling slave's message callback " 193 "Calling member's message callback "
194 "for a message of type %u and size %u.\n", 194 "with a message of type %u and size %u.\n",
195 ntohs (msg->type), ntohs (msg->size)); 195 ntohs (msg->type), ntohs (msg->size));
196 struct GNUNET_MULTICAST_Member *mem = (struct GNUNET_MULTICAST_Member *) grp; 196 struct GNUNET_MULTICAST_Member *mem = (struct GNUNET_MULTICAST_Member *) grp;
197 mem->message_cb (mem->cls, msg); 197 mem->message_cb (mem->cls, msg);
@@ -477,8 +477,8 @@ schedule_origin_to_all (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc
477 msg->group_generation = mh->group_generation; 477 msg->group_generation = mh->group_generation;
478 478
479 /* FIXME: add fragment ID and signature in the service instead of here */ 479 /* FIXME: add fragment ID and signature in the service instead of here */
480 msg->fragment_id = GNUNET_ntohll (orig->next_fragment_id++); 480 msg->fragment_id = GNUNET_htonll (orig->next_fragment_id++);
481 msg->fragment_offset = GNUNET_ntohll (mh->fragment_offset); 481 msg->fragment_offset = GNUNET_htonll (mh->fragment_offset);
482 mh->fragment_offset += sizeof (*msg) + buf_size; 482 mh->fragment_offset += sizeof (*msg) + buf_size;
483 msg->purpose.size = htonl (sizeof (*msg) + buf_size 483 msg->purpose.size = htonl (sizeof (*msg) + buf_size
484 - sizeof (msg->header) 484 - sizeof (msg->header)