diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-04-22 14:59:35 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-04-22 14:59:35 +0000 |
commit | 5b4391e864f3630662cac53be97a60ad4a1157c5 (patch) | |
tree | 8a97c9004d90de09a465f7d6309b507ea1e2793c /src/include/gnunet_testing_lib.h | |
parent | ac715837a25032b460c00a97d957d1eeafc36c48 (diff) | |
download | gnunet-5b4391e864f3630662cac53be97a60ad4a1157c5.tar.gz gnunet-5b4391e864f3630662cac53be97a60ad4a1157c5.zip |
dht and testing lib stuff
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index de7a01ea1..3047319e4 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -175,12 +175,15 @@ GNUNET_TESTING_daemon_get_config (struct GNUNET_TESTING_Daemon *d); | |||
175 | * @param d2 handle for the second daemon | 175 | * @param d2 handle for the second daemon |
176 | * @param timeout how long is the connection attempt | 176 | * @param timeout how long is the connection attempt |
177 | * allowed to take? | 177 | * allowed to take? |
178 | * @param max_connect_attempts how many times should we try to reconnect | ||
179 | * (within timeout) | ||
178 | * @param cb function to call at the end | 180 | * @param cb function to call at the end |
179 | * @param cb_cls closure for cb | 181 | * @param cb_cls closure for cb |
180 | */ | 182 | */ |
181 | void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1, | 183 | void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1, |
182 | struct GNUNET_TESTING_Daemon *d2, | 184 | struct GNUNET_TESTING_Daemon *d2, |
183 | struct GNUNET_TIME_Relative timeout, | 185 | struct GNUNET_TIME_Relative timeout, |
186 | unsigned int max_connect_attempts, | ||
184 | GNUNET_TESTING_NotifyConnection cb, | 187 | GNUNET_TESTING_NotifyConnection cb, |
185 | void *cb_cls); | 188 | void *cb_cls); |
186 | 189 | ||
@@ -393,6 +396,16 @@ struct GNUNET_TESTING_Daemon | |||
393 | * Handle to the server. | 396 | * Handle to the server. |
394 | */ | 397 | */ |
395 | struct GNUNET_CORE_Handle *server; | 398 | struct GNUNET_CORE_Handle *server; |
399 | |||
400 | /** | ||
401 | * Handle to the transport service of this peer | ||
402 | */ | ||
403 | struct GNUNET_TRANSPORT_Handle *th; | ||
404 | |||
405 | /** | ||
406 | * HELLO message for this peer | ||
407 | */ | ||
408 | struct GNUNET_HELLO_Message *hello; | ||
396 | }; | 409 | }; |
397 | 410 | ||
398 | /** | 411 | /** |