Closure that must be passed to GNUNET_TRANSPORT_TESTING_connect_check. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/transport/transport-testing2.h>
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_Handle * | cfg |
Configuration object for the testcase. More... | |
struct GNUNET_TRANSPORT_TESTING_Handle * | tth |
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_Task * | timeout_task |
Task run on timeout. More... | |
struct GNUNET_SCHEDULER_Task * | connect_task |
Task run to connect peers. More... | |
unsigned int | started |
Number of peers that have been started. More... | |
struct GNUNET_TRANSPORT_TESTING_ConnectRequestList * | crl_head |
DLL of active connect requests. More... | |
struct GNUNET_TRANSPORT_TESTING_ConnectRequestList * | crl_tail |
DLL of active connect requests. More... | |
struct GNUNET_TRANSPORT_TESTING_InternalPeerContext * | ip |
Array with num_peers entries. More... | |
Closure that must be passed to GNUNET_TRANSPORT_TESTING_connect_check.
Definition at line 500 of file transport-testing2.h.
GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_ConnectCheckContext::connect_continuation |
How should we continue after the connect?
Definition at line 505 of file transport-testing2.h.
Referenced by connect_cb().
void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::connect_continuation_cls |
Closure for connect_continuation.
Definition at line 510 of file transport-testing2.h.
Referenced by connect_cb().
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 516 of file transport-testing2.h.
Referenced by GNUNET_TRANSPORT_TESTING_connect_check().
GNUNET_TRANSPORT_TESTING_ReceiveCallback GNUNET_TRANSPORT_TESTING_ConnectCheckContext::rec |
Receiver argument to give for peers we start.
Definition at line 521 of file transport-testing2.h.
Referenced by handle_test(), and handle_test2().
GNUNET_TRANSPORT_TESTING_NotifyConnect GNUNET_TRANSPORT_TESTING_ConnectCheckContext::nc |
Notify connect argument to give for peers we start.
Definition at line 526 of file transport-testing2.h.
Referenced by my_nc().
GNUNET_TRANSPORT_TESTING_NotifyDisconnect GNUNET_TRANSPORT_TESTING_ConnectCheckContext::nd |
Notify disconnect argument to give for peers we start.
Definition at line 531 of file transport-testing2.h.
Referenced by my_nd().
void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::cls |
Closure for rec, nc and nd.
Definition at line 536 of file transport-testing2.h.
Referenced by connect_check_run(), do_connect(), do_shutdown(), do_timeout(), GNUNET_TRANSPORT_TESTING_connect_check(), handle_test(), handle_test2(), my_nc(), and my_nd().
GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_ConnectCheckContext::shutdown_task |
Custom task to run on shutdown.
Definition at line 541 of file transport-testing2.h.
Referenced by do_shutdown().
void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::shutdown_task_cls |
Closure for shutdown_task.
Definition at line 546 of file transport-testing2.h.
Referenced by do_shutdown().
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 554 of file transport-testing2.h.
Referenced by start_cb().
void* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::pre_connect_task_cls |
Closure for shutdown_task.
Definition at line 559 of file transport-testing2.h.
Referenced by start_cb().
struct GNUNET_TIME_Relative GNUNET_TRANSPORT_TESTING_ConnectCheckContext::timeout |
When should the testcase time out?
Definition at line 564 of file transport-testing2.h.
Referenced by connect_check_run().
int GNUNET_TRANSPORT_TESTING_ConnectCheckContext::bi_directional |
Should we try to create connections in both directions?
Definition at line 569 of file transport-testing2.h.
Referenced by do_connect().
unsigned int GNUNET_TRANSPORT_TESTING_ConnectCheckContext::num_peers |
Number of peers involved in the test.
Definition at line 576 of file transport-testing2.h.
Referenced by connect_check_run(), do_connect(), do_shutdown(), GNUNET_TRANSPORT_TESTING_connect_check(), GNUNET_TRANSPORT_TESTING_find_peer(), and start_cb().
char** GNUNET_TRANSPORT_TESTING_ConnectCheckContext::cfg_files |
Configuration files we have, array with num_peers entries.
Definition at line 581 of file transport-testing2.h.
Referenced by connect_check_run(), and GNUNET_TRANSPORT_TESTING_connect_check().
struct GNUNET_TRANSPORT_TESTING_PeerContext** GNUNET_TRANSPORT_TESTING_ConnectCheckContext::p |
Array with num_peers entries.
Definition at line 586 of file transport-testing2.h.
Referenced by connect_check_run(), do_connect(), do_send(), do_shutdown(), GNUNET_TRANSPORT_TESTING_connect_check(), GNUNET_TRANSPORT_TESTING_find_peer(), handle_test(), handle_test2(), my_nc(), my_nd(), and start_cb().
const char* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::test_plugin |
Name of the plugin.
Definition at line 591 of file transport-testing2.h.
Referenced by GNUNET_TRANSPORT_TESTING_connect_check().
const char* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::test_name |
Name of the testcase.
Definition at line 596 of file transport-testing2.h.
Referenced by GNUNET_TRANSPORT_TESTING_connect_check().
const struct GNUNET_CONFIGURATION_Handle* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::cfg |
Configuration object for the testcase.
Definition at line 601 of file transport-testing2.h.
Referenced by connect_check_run().
struct GNUNET_TRANSPORT_TESTING_Handle* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::tth |
Main testing handle.
Definition at line 606 of file transport-testing2.h.
Referenced by connect_check_run(), and GNUNET_TRANSPORT_TESTING_connect_check().
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 612 of file transport-testing2.h.
Referenced by do_send(), do_timeout(), and GNUNET_TRANSPORT_TESTING_connect_check().
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 620 of file transport-testing2.h.
Referenced by do_send().
struct GNUNET_SCHEDULER_Task* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::timeout_task |
Task run on timeout.
Definition at line 627 of file transport-testing2.h.
Referenced by connect_check_run(), do_shutdown(), and do_timeout().
struct GNUNET_SCHEDULER_Task* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::connect_task |
Task run to connect peers.
Definition at line 632 of file transport-testing2.h.
Referenced by do_connect(), do_shutdown(), and start_cb().
unsigned int GNUNET_TRANSPORT_TESTING_ConnectCheckContext::started |
Number of peers that have been started.
Definition at line 637 of file transport-testing2.h.
Referenced by start_cb().
struct GNUNET_TRANSPORT_TESTING_ConnectRequestList* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::crl_head |
DLL of active connect requests.
Definition at line 642 of file transport-testing2.h.
Referenced by connect_cb(), do_connect(), and do_shutdown().
struct GNUNET_TRANSPORT_TESTING_ConnectRequestList* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::crl_tail |
DLL of active connect requests.
Definition at line 647 of file transport-testing2.h.
Referenced by connect_cb(), do_connect(), and do_shutdown().
struct GNUNET_TRANSPORT_TESTING_InternalPeerContext* GNUNET_TRANSPORT_TESTING_ConnectCheckContext::ip |
Array with num_peers entries.
Definition at line 652 of file transport-testing2.h.
Referenced by connect_check_run(), and GNUNET_TRANSPORT_TESTING_connect_check().