diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-02-22 15:19:49 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-02-22 15:19:49 +0000 |
commit | 7c0698d2296e00d9544f48819f24ed4319e3fad8 (patch) | |
tree | 343507da792d950d8d24ed11648e433bcad304a9 /src/include/gnunet_testing_lib.h | |
parent | ac5cf07b590f788946d4b05f8e11b2414493f4eb (diff) | |
download | gnunet-7c0698d2296e00d9544f48819f24ed4319e3fad8.tar.gz gnunet-7c0698d2296e00d9544f48819f24ed4319e3fad8.zip |
Testing and core related changes.
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 14a0bbd86..af57613c6 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -158,6 +158,11 @@ enum GNUNET_TESTING_StartPhase | |||
158 | SP_START_CORE, | 158 | SP_START_CORE, |
159 | 159 | ||
160 | /** | 160 | /** |
161 | * CORE is up, now make sure we get the HELLO for this peer. | ||
162 | */ | ||
163 | SP_GET_HELLO, | ||
164 | |||
165 | /** | ||
161 | * Core has notified us that we've established a connection to the service. | 166 | * Core has notified us that we've established a connection to the service. |
162 | * The main FSM halts here and waits to be moved to UPDATE or CLEANUP. | 167 | * The main FSM halts here and waits to be moved to UPDATE or CLEANUP. |
163 | */ | 168 | */ |
@@ -545,15 +550,19 @@ void GNUNET_TESTING_daemon_reconfigure (struct GNUNET_TESTING_Daemon *d, | |||
545 | * allowed to take? | 550 | * allowed to take? |
546 | * @param max_connect_attempts how many times should we try to reconnect | 551 | * @param max_connect_attempts how many times should we try to reconnect |
547 | * (within timeout) | 552 | * (within timeout) |
553 | * @param send_hello GNUNET_YES to send the HELLO, GNUNET_NO to assume | ||
554 | * the HELLO has already been exchanged | ||
548 | * @param cb function to call at the end | 555 | * @param cb function to call at the end |
549 | * @param cb_cls closure for cb | 556 | * @param cb_cls closure for cb |
550 | */ | 557 | */ |
551 | void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1, | 558 | void |
552 | struct GNUNET_TESTING_Daemon *d2, | 559 | GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1, |
553 | struct GNUNET_TIME_Relative timeout, | 560 | struct GNUNET_TESTING_Daemon *d2, |
554 | unsigned int max_connect_attempts, | 561 | struct GNUNET_TIME_Relative timeout, |
555 | GNUNET_TESTING_NotifyConnection cb, | 562 | unsigned int max_connect_attempts, |
556 | void *cb_cls); | 563 | int send_hello, |
564 | GNUNET_TESTING_NotifyConnection cb, | ||
565 | void *cb_cls); | ||
557 | 566 | ||
558 | 567 | ||
559 | 568 | ||