aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-03-12 16:39:41 +0000
committerGabor X Toth <*@tg-x.net>2014-03-12 16:39:41 +0000
commitdbdb091b11204e1e1caaa3f4260bb6cf1168cbd2 (patch)
tree23d24f1cd487b68d0fcb30f015c4f7f6ef9a015d /src/include/gnunet_psyc_service.h
parent1bf8c98f6d843f30e9abfa6dde31e31e50170c06 (diff)
downloadgnunet-dbdb091b11204e1e1caaa3f4260bb6cf1168cbd2.tar.gz
gnunet-dbdb091b11204e1e1caaa3f4260bb6cf1168cbd2.zip
PSYC: in-order delivery of fragments; tests for large messages
Cache message received fragments from multicast and deliver them in the correct order to clients. Test messages with large modifier and data payloads.
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index 8f1707854..3a0c713d5 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -444,10 +444,14 @@ typedef int
444 * contain: "name\0value". If the whole value does not fit, subsequent 444 * contain: "name\0value". If the whole value does not fit, subsequent
445 * calls to this function should write continuations of the value to 445 * calls to this function should write continuations of the value to
446 * @a data. 446 * @a data.
447 * @param oper Where to write the operator of the modifier. Only needed during 447 * @param[out] oper Where to write the operator of the modifier.
448 * the first call to this callback at the beginning of the modifier. 448 * Only needed during the first call to this callback at the beginning
449 * In case of subsequent calls asking for value continuations @a oper is 449 * of the modifier. In case of subsequent calls asking for value
450 * set to #NULL. 450 * continuations @a oper is set to #NULL.
451 * @param[out] value_size Where to write the full size of the value.
452 * Only needed during the first call to this callback at the beginning
453 * of the modifier. In case of subsequent calls asking for value
454 * continuations @a value_size is set to #NULL.
451 * @return #GNUNET_SYSERR on error (fatal, aborts transmission) 455 * @return #GNUNET_SYSERR on error (fatal, aborts transmission)
452 * #GNUNET_NO on success, if more data is to be transmitted later. 456 * #GNUNET_NO on success, if more data is to be transmitted later.
453 * Should be used if @a data_size was not big enough to take all the 457 * Should be used if @a data_size was not big enough to take all the
@@ -461,7 +465,8 @@ typedef int
461(*GNUNET_PSYC_TransmitNotifyModifier) (void *cls, 465(*GNUNET_PSYC_TransmitNotifyModifier) (void *cls,
462 uint16_t *data_size, 466 uint16_t *data_size,
463 void *data, 467 void *data,
464 uint8_t *oper); 468 uint8_t *oper,
469 uint32_t *value_size);
465 470
466/** 471/**
467 * Flags for transmitting messages to a channel by the master. 472 * Flags for transmitting messages to a channel by the master.
@@ -659,7 +664,7 @@ GNUNET_PSYC_slave_transmit (struct GNUNET_PSYC_Slave *slave,
659 * @param th Handle of the request that is being resumed. 664 * @param th Handle of the request that is being resumed.
660 */ 665 */
661void 666void
662GNUNET_PSYC_slave_transmit_resume (struct GNUNET_PSYC_MasterTransmitHandle *th); 667GNUNET_PSYC_slave_transmit_resume (struct GNUNET_PSYC_SlaveTransmitHandle *th);
663 668
664 669
665/** 670/**