aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index 842c88374..b78d11dbe 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -459,10 +459,28 @@ struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext
459 void *shutdown_task_cls; 459 void *shutdown_task_cls;
460 460
461 /** 461 /**
462 * Custom task to run after peers were started but before we try to
463 * connect them. If this function is set, we wait ONE second after
464 * running this function until we continue with connecting the
465 * peers.
466 */
467 GNUNET_SCHEDULER_TaskCallback pre_connect_task;
468
469 /**
470 * Closure for @e shutdown_task.
471 */
472 void *pre_connect_task_cls;
473
474 /**
462 * When should the testcase time out? 475 * When should the testcase time out?
463 */ 476 */
464 struct GNUNET_TIME_Relative timeout; 477 struct GNUNET_TIME_Relative timeout;
465 478
479 /**
480 * Should we try to create connections in both directions?
481 */
482 int bi_directional;
483
466 /* ******* fields set by #GNUNET_TRANSPORT_TESTING_connect_check **** */ 484 /* ******* fields set by #GNUNET_TRANSPORT_TESTING_connect_check **** */
467 485
468 /** 486 /**
@@ -514,6 +532,11 @@ struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext
514 struct GNUNET_SCHEDULER_Task *timeout_task; 532 struct GNUNET_SCHEDULER_Task *timeout_task;
515 533
516 /** 534 /**
535 * Task run to connect peers.
536 */
537 struct GNUNET_SCHEDULER_Task *connect_task;
538
539 /**
517 * Number of peers that have been started. 540 * Number of peers that have been started.
518 */ 541 */
519 unsigned int started; 542 unsigned int started;