GNUnet  0.11.x
Data Fields
GNUNET_TRANSPORT_TESTING_ConnectCheckContext Struct Reference

Closure that must be passed to GNUNET_TRANSPORT_TESTING_connect_check. More...

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

Collaboration diagram for GNUNET_TRANSPORT_TESTING_ConnectCheckContext:
[legend]

Data Fields

GNUNET_SCHEDULER_TaskCallback connect_continuation
 How should we continue after the connect? More...
 
void * connect_continuation_cls
 Closure for connect_continuation. More...
 
const char * config_file
 Which configuration file should we pass to the GNUNET_PROGRAM_run() of the testcase? More...
 
GNUNET_TRANSPORT_TESTING_ReceiveCallback rec
 Receiver argument to give for peers we start. More...
 
GNUNET_TRANSPORT_TESTING_NotifyConnect nc
 Notify connect argument to give for peers we start. More...
 
GNUNET_TRANSPORT_TESTING_NotifyDisconnect nd
 Notify disconnect argument to give for peers we start. More...
 
void * cls
 Closure for rec, nc and nd. More...
 
GNUNET_SCHEDULER_TaskCallback shutdown_task
 Custom task to run on shutdown. More...
 
void * shutdown_task_cls
 Closure for shutdown_task. More...
 
GNUNET_SCHEDULER_TaskCallback pre_connect_task
 Custom task to run after peers were started but before we try to connect them. More...
 
void * pre_connect_task_cls
 Closure for shutdown_task. More...
 
struct GNUNET_TIME_Relative timeout
 When should the testcase time out? More...
 
int bi_directional
 Should we try to create connections in both directions? More...
 
unsigned int num_peers
 Number of peers involved in the test. More...
 
char ** cfg_files
 Configuration files we have, array with num_peers entries. More...
 
struct GNUNET_TRANSPORT_TESTING_PeerContext ** p
 Array with num_peers entries. More...
 
const char * test_plugin
 Name of the plugin. More...
 
const char * test_name
 Name of the testcase. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 Configuration object for the testcase. More...
 
struct GNUNET_TRANSPORT_TESTING_Handletth
 Main testing handle. More...
 
int global_ret
 Result from the main function, set to GNUNET_OK on success. More...
 
uint32_t send_num_gen
 Generator for the num field in test messages. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 Task run on timeout. More...
 
struct GNUNET_SCHEDULER_Taskconnect_task
 Task run to connect peers. More...
 
unsigned int started
 Number of peers that have been started. More...
 
struct GNUNET_TRANSPORT_TESTING_ConnectRequestListcrl_head
 DLL of active connect requests. More...
 
struct GNUNET_TRANSPORT_TESTING_ConnectRequestListcrl_tail
 DLL of active connect requests. More...
 
struct GNUNET_TRANSPORT_TESTING_InternalPeerContextip
 Array with num_peers entries. More...
 

Detailed Description

Closure that must be passed to GNUNET_TRANSPORT_TESTING_connect_check.

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

Field Documentation

◆ connect_continuation

GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_ConnectCheckContext::connect_continuation

How should we continue after the connect?

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

Referenced by connect_cb().

◆ connect_continuation_cls

void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::connect_continuation_cls

Closure for connect_continuation.

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

Referenced by connect_cb().

◆ config_file

const char* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::config_file

Which configuration file should we pass to the GNUNET_PROGRAM_run() of the testcase?

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

Referenced by GNUNET_TRANSPORT_TESTING_connect_check().

◆ rec

GNUNET_TRANSPORT_TESTING_ReceiveCallback GNUNET_TRANSPORT_TESTING_ConnectCheckContext::rec

Receiver argument to give for peers we start.

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

Referenced by handle_test(), and handle_test2().

◆ nc

GNUNET_TRANSPORT_TESTING_NotifyConnect GNUNET_TRANSPORT_TESTING_ConnectCheckContext::nc

Notify connect argument to give for peers we start.

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

Referenced by my_nc().

◆ nd

GNUNET_TRANSPORT_TESTING_NotifyDisconnect GNUNET_TRANSPORT_TESTING_ConnectCheckContext::nd

Notify disconnect argument to give for peers we start.

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

Referenced by my_nd().

◆ cls

void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::cls

◆ shutdown_task

GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_ConnectCheckContext::shutdown_task

Custom task to run on shutdown.

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

Referenced by do_shutdown().

◆ shutdown_task_cls

void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::shutdown_task_cls

Closure for shutdown_task.

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

Referenced by do_shutdown().

◆ pre_connect_task

GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_ConnectCheckContext::pre_connect_task

Custom task to run after peers were started but before we try to connect them.

If this function is set, we wait ONE second after running this function until we continue with connecting the peers.

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

Referenced by start_cb().

◆ pre_connect_task_cls

void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::pre_connect_task_cls

Closure for shutdown_task.

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

Referenced by start_cb().

◆ timeout

struct GNUNET_TIME_Relative GNUNET_TRANSPORT_TESTING_ConnectCheckContext::timeout

When should the testcase time out?

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

Referenced by connect_check_run().

◆ bi_directional

int GNUNET_TRANSPORT_TESTING_ConnectCheckContext::bi_directional

Should we try to create connections in both directions?

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

Referenced by do_connect().

◆ num_peers

unsigned int GNUNET_TRANSPORT_TESTING_ConnectCheckContext::num_peers

◆ cfg_files

char** GNUNET_TRANSPORT_TESTING_ConnectCheckContext::cfg_files

Configuration files we have, array with num_peers entries.

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

Referenced by connect_check_run(), and GNUNET_TRANSPORT_TESTING_connect_check().

◆ p

struct GNUNET_TRANSPORT_TESTING_PeerContext** GNUNET_TRANSPORT_TESTING_ConnectCheckContext::p

◆ test_plugin

const char* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::test_plugin

Name of the plugin.

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

Referenced by GNUNET_TRANSPORT_TESTING_connect_check().

◆ test_name

const char* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::test_name

Name of the testcase.

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

Referenced by GNUNET_TRANSPORT_TESTING_connect_check().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::cfg

Configuration object for the testcase.

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

Referenced by connect_check_run().

◆ tth

struct GNUNET_TRANSPORT_TESTING_Handle* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::tth

Main testing handle.

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

Referenced by connect_check_run(), and GNUNET_TRANSPORT_TESTING_connect_check().

◆ global_ret

int GNUNET_TRANSPORT_TESTING_ConnectCheckContext::global_ret

Result from the main function, set to GNUNET_OK on success.

Clients should set to GNUNET_SYSERR to indicate test failure.

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

Referenced by do_send(), do_timeout(), and GNUNET_TRANSPORT_TESTING_connect_check().

◆ send_num_gen

uint32_t GNUNET_TRANSPORT_TESTING_ConnectCheckContext::send_num_gen

Generator for the num field in test messages.

Incremented each time GNUNET_TRANSPORT_TESTING_simple_send or GNUNET_TRANSPORT_TESTING_large_send are used to transmit a message.

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

Referenced by do_send().

◆ timeout_task

struct GNUNET_SCHEDULER_Task* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::timeout_task

Task run on timeout.

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

Referenced by connect_check_run(), do_shutdown(), and do_timeout().

◆ connect_task

struct GNUNET_SCHEDULER_Task* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::connect_task

Task run to connect peers.

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

Referenced by do_connect(), do_shutdown(), and start_cb().

◆ started

unsigned int GNUNET_TRANSPORT_TESTING_ConnectCheckContext::started

Number of peers that have been started.

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

Referenced by start_cb().

◆ crl_head

struct GNUNET_TRANSPORT_TESTING_ConnectRequestList* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::crl_head

DLL of active connect requests.

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

Referenced by connect_cb(), do_connect(), and do_shutdown().

◆ crl_tail

struct GNUNET_TRANSPORT_TESTING_ConnectRequestList* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::crl_tail

DLL of active connect requests.

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

Referenced by connect_cb(), do_connect(), and do_shutdown().

◆ ip

struct GNUNET_TRANSPORT_TESTING_InternalPeerContext* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::ip

Array with num_peers entries.

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

Referenced by connect_check_run(), and GNUNET_TRANSPORT_TESTING_connect_check().


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