GNUnet  last
GNUNET_CADET_TEST_Context Struct Reference

Test context for a CADET Test. More...

Collaboration diagram for GNUNET_CADET_TEST_Context:
[legend]

Data Fields

struct GNUNET_TESTBED_Peer ** peers
 Array of running peers. More...
 
struct GNUNET_CADET_Handle ** cadets
 Array of handles to the CADET for each peer. More...
 
struct GNUNET_TESTBED_Operation ** ops
 Operation associated with the connection to the CADET. More...
 
unsigned int num_peers
 Number of peers running, size of the arrays above. More...
 
GNUNET_CADET_TEST_AppMain app_main
 Main function of the test to run once all CADETs are available. More...
 
void * app_main_cls
 Closure for 'app_main'. More...
 
GNUNET_CADET_ConnectEventHandler connects
 Handler for incoming tunnels. More...
 
GNUNET_CADET_WindowSizeEventHandler window_changes
 Function called when the transmit window size changes. More...
 
GNUNET_CADET_DisconnectEventHandler disconnects
 Cleaner for destroyed incoming tunnels. More...
 
struct GNUNET_MQ_MessageHandlerhandlers
 Message handlers. More...
 
const struct GNUNET_HashCode ** ports
 Application ports. More...
 
unsigned int port_count
 Number of ports in ports. More...
 

Detailed Description

Test context for a CADET Test.

Definition at line 34 of file cadet_test_lib.c.

Field Documentation

◆ peers

struct GNUNET_TESTBED_Peer** GNUNET_CADET_TEST_Context::peers

Array of running peers.

Definition at line 39 of file cadet_test_lib.c.

◆ cadets

struct GNUNET_CADET_Handle** GNUNET_CADET_TEST_Context::cadets

Array of handles to the CADET for each peer.

Definition at line 44 of file cadet_test_lib.c.

◆ ops

struct GNUNET_TESTBED_Operation** GNUNET_CADET_TEST_Context::ops

Operation associated with the connection to the CADET.

Definition at line 49 of file cadet_test_lib.c.

◆ num_peers

unsigned int GNUNET_CADET_TEST_Context::num_peers

Number of peers running, size of the arrays above.

Definition at line 54 of file cadet_test_lib.c.

◆ app_main

GNUNET_CADET_TEST_AppMain GNUNET_CADET_TEST_Context::app_main

Main function of the test to run once all CADETs are available.

Definition at line 59 of file cadet_test_lib.c.

◆ app_main_cls

void* GNUNET_CADET_TEST_Context::app_main_cls

Closure for 'app_main'.

Definition at line 64 of file cadet_test_lib.c.

◆ connects

GNUNET_CADET_ConnectEventHandler GNUNET_CADET_TEST_Context::connects

Handler for incoming tunnels.

Definition at line 69 of file cadet_test_lib.c.

◆ window_changes

GNUNET_CADET_WindowSizeEventHandler GNUNET_CADET_TEST_Context::window_changes

Function called when the transmit window size changes.

Definition at line 74 of file cadet_test_lib.c.

Referenced by GNUNET_CADET_TEST_ruN().

◆ disconnects

GNUNET_CADET_DisconnectEventHandler GNUNET_CADET_TEST_Context::disconnects

Cleaner for destroyed incoming tunnels.

Definition at line 79 of file cadet_test_lib.c.

◆ handlers

struct GNUNET_MQ_MessageHandler* GNUNET_CADET_TEST_Context::handlers

Message handlers.

Definition at line 84 of file cadet_test_lib.c.

◆ ports

const struct GNUNET_HashCode** GNUNET_CADET_TEST_Context::ports

Application ports.

Definition at line 89 of file cadet_test_lib.c.

Referenced by GNUNET_CADET_TEST_ruN().

◆ port_count

unsigned int GNUNET_CADET_TEST_Context::port_count

Number of ports in ports.

Definition at line 94 of file cadet_test_lib.c.

Referenced by cadet_disconnect_adapter().


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