Library to help fragment messages. More...
Go to the source code of this file.
Typedefs | |
typedef void(* | GNUNET_FRAGMENT_MessageProcessor) (void *cls, const struct GNUNET_MessageHeader *msg) |
Function that is called with messages created by the fragmentation module. More... | |
typedef void(* | GNUNET_DEFRAGMENT_AckProcessor) (void *cls, uint32_t id, const struct GNUNET_MessageHeader *msg) |
Function that is called with acknowledgement messages created by the fragmentation module. More... | |
Functions | |
struct GNUNET_FRAGMENT_Context * | GNUNET_FRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, uint16_t mtu, struct GNUNET_BANDWIDTH_Tracker *tracker, struct GNUNET_TIME_Relative msg_delay, struct GNUNET_TIME_Relative ack_delay, const struct GNUNET_MessageHeader *msg, GNUNET_FRAGMENT_MessageProcessor proc, void *proc_cls) |
Create a fragmentation context for the given message. More... | |
void | GNUNET_FRAGMENT_context_transmission_done (struct GNUNET_FRAGMENT_Context *fc) |
Continuation to call from the 'proc' function after the fragment has been transmitted (and hence the next fragment can now be given to proc). More... | |
int | GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc, const struct GNUNET_MessageHeader *msg) |
Process an acknowledgement message we got from the other side (to control re-transmits). More... | |
void | GNUNET_FRAGMENT_context_destroy (struct GNUNET_FRAGMENT_Context *fc, struct GNUNET_TIME_Relative *msg_delay, struct GNUNET_TIME_Relative *ack_delay) |
Destroy the given fragmentation context (stop calling 'proc', free resources). More... | |
const char * | GNUNET_FRAGMENT_print_ack (const struct GNUNET_MessageHeader *ack) |
Convert an ACK message to a printable format suitable for logging. More... | |
struct GNUNET_DEFRAGMENT_Context * | GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, uint16_t mtu, unsigned int num_msgs, void *cls, GNUNET_FRAGMENT_MessageProcessor proc, GNUNET_DEFRAGMENT_AckProcessor ackp) |
Create a defragmentation context. More... | |
void | GNUNET_DEFRAGMENT_context_destroy (struct GNUNET_DEFRAGMENT_Context *dc) |
Destroy the given defragmentation context. More... | |
int | GNUNET_DEFRAGMENT_process_fragment (struct GNUNET_DEFRAGMENT_Context *dc, const struct GNUNET_MessageHeader *msg) |
We have received a fragment. More... | |
Library to help fragment messages.
Definition in file gnunet_fragmentation_lib.h.