diff options
-rw-r--r-- | src/include/gnunet_protocols.h | 20 | ||||
-rw-r--r-- | src/include/gnunet_testing_lib.h | 13 |
2 files changed, 26 insertions, 7 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 72fcccf94..dfa25fc29 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -183,6 +183,7 @@ extern "C" | |||
183 | */ | 183 | */ |
184 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30 | 184 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30 |
185 | 185 | ||
186 | |||
186 | /** | 187 | /** |
187 | * Reply from blacklisting client (answer to blacklist query). | 188 | * Reply from blacklisting client (answer to blacklist query). |
188 | */ | 189 | */ |
@@ -494,37 +495,42 @@ extern "C" | |||
494 | /** | 495 | /** |
495 | * Local and P2P generic DHT message start type | 496 | * Local and P2P generic DHT message start type |
496 | */ | 497 | */ |
497 | #define GNUNET_MESSAGE_TYPE_DHT 142 | 498 | #define GNUNET_MESSAGE_TYPE_DHT_ROUTE 142 |
499 | |||
500 | /** | ||
501 | * Local and P2P generic DHT message start type | ||
502 | */ | ||
503 | #define GNUNET_MESSAGE_TYPE_DHT_ROUTE_RESULT 143 | ||
498 | 504 | ||
499 | /** | 505 | /** |
500 | * Local and P2P generic DHT message stop type | 506 | * Local and P2P generic DHT message stop type |
501 | */ | 507 | */ |
502 | #define GNUNET_MESSAGE_TYPE_DHT_STOP 143 | 508 | #define GNUNET_MESSAGE_TYPE_DHT_STOP 144 |
503 | 509 | ||
504 | /** | 510 | /** |
505 | * Local and message acknowledgment | 511 | * Local and message acknowledgment |
506 | */ | 512 | */ |
507 | #define GNUNET_MESSAGE_TYPE_DHT_ACK 144 | 513 | #define GNUNET_MESSAGE_TYPE_DHT_ACK 145 |
508 | 514 | ||
509 | /** | 515 | /** |
510 | * Local DHT Put message, from API to service | 516 | * Local DHT Put message, from API to service |
511 | */ | 517 | */ |
512 | #define GNUNET_MESSAGE_TYPE_DHT_PUT 145 | 518 | #define GNUNET_MESSAGE_TYPE_DHT_PUT 146 |
513 | 519 | ||
514 | /** | 520 | /** |
515 | * Local DHT Get message, from API to service | 521 | * Local DHT Get message, from API to service |
516 | */ | 522 | */ |
517 | #define GNUNET_MESSAGE_TYPE_DHT_GET 146 | 523 | #define GNUNET_MESSAGE_TYPE_DHT_GET 147 |
518 | 524 | ||
519 | /** | 525 | /** |
520 | * Local DHT Get stop message, from API to service | 526 | * Local DHT Get stop message, from API to service |
521 | */ | 527 | */ |
522 | #define GNUNET_MESSAGE_TYPE_DHT_GET_STOP 147 | 528 | #define GNUNET_MESSAGE_TYPE_DHT_GET_STOP 148 |
523 | 529 | ||
524 | /** | 530 | /** |
525 | * Local DHT Get result message, from service to API | 531 | * Local DHT Get result message, from service to API |
526 | */ | 532 | */ |
527 | #define GNUNET_MESSAGE_TYPE_DHT_GET_RESULT 148 | 533 | #define GNUNET_MESSAGE_TYPE_DHT_GET_RESULT 149 |
528 | 534 | ||
529 | /** | 535 | /** |
530 | * Local DHT Get message, from API to service | 536 | * Local DHT Get message, from API to service |
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 | /** |