GNUnet  0.11.x
Data Fields
GNUNET_TRANSPORT_TESTING_SendClosure Struct Reference

Type of the closure argument to pass to GNUNET_TRANSPORT_TESTING_simple_send() and GNUNET_TRANSPORT_TESTING_large_send(). More...

#include </home/handbook/gnunet/src/transport/transport-testing.h>

Collaboration diagram for GNUNET_TRANSPORT_TESTING_SendClosure:
[legend]

Data Fields

struct GNUNET_TRANSPORT_TESTING_ConnectCheckContextccc
 Context for the transmission. More...
 
size_t(* get_size_cb )(unsigned int n)
 Function that returns the desired message size. More...
 
unsigned int num_messages
 Number of messages to be transmitted in a loop. More...
 
GNUNET_SCHEDULER_TaskCallback cont
 Function to call after all transmissions, can be NULL. More...
 
void * cont_cls
 Closure for cont. More...
 

Detailed Description

Type of the closure argument to pass to GNUNET_TRANSPORT_TESTING_simple_send() and GNUNET_TRANSPORT_TESTING_large_send().

Definition at line 773 of file transport-testing.h.

Field Documentation

◆ ccc

struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext* GNUNET_TRANSPORT_TESTING_SendClosure::ccc

Context for the transmission.

Definition at line 778 of file transport-testing.h.

Referenced by GNUNET_TRANSPORT_TESTING_large_send(), and GNUNET_TRANSPORT_TESTING_simple_send().

◆ get_size_cb

size_t(* GNUNET_TRANSPORT_TESTING_SendClosure::get_size_cb) (unsigned int n)

Function that returns the desired message size.

Overrides the message size, can be NULL in which case the message size is the default.

Definition at line 785 of file transport-testing.h.

Referenced by GNUNET_TRANSPORT_TESTING_large_send(), and GNUNET_TRANSPORT_TESTING_simple_send().

◆ num_messages

unsigned int GNUNET_TRANSPORT_TESTING_SendClosure::num_messages

Number of messages to be transmitted in a loop.

Use zero for "forever" (until external shutdown).

Definition at line 791 of file transport-testing.h.

Referenced by GNUNET_TRANSPORT_TESTING_large_send(), and GNUNET_TRANSPORT_TESTING_simple_send().

◆ cont

GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_SendClosure::cont

Function to call after all transmissions, can be NULL.

Definition at line 796 of file transport-testing.h.

Referenced by GNUNET_TRANSPORT_TESTING_large_send(), and GNUNET_TRANSPORT_TESTING_simple_send().

◆ cont_cls

void* GNUNET_TRANSPORT_TESTING_SendClosure::cont_cls

Closure for cont.

Definition at line 801 of file transport-testing.h.

Referenced by GNUNET_TRANSPORT_TESTING_large_send(), and GNUNET_TRANSPORT_TESTING_simple_send().


The documentation for this struct was generated from the following file: