diff options
Diffstat (limited to 'src/core/test_core_api_reliability.c')
-rw-r--r-- | src/core/test_core_api_reliability.c | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index c5ee12478..7a3b53c53 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -20,6 +20,7 @@ | |||
20 | /** | 20 | /** |
21 | * @file core/test_core_api_reliability.c | 21 | * @file core/test_core_api_reliability.c |
22 | * @brief testcase for core_api.c focusing on reliable transmission (with TCP) | 22 | * @brief testcase for core_api.c focusing on reliable transmission (with TCP) |
23 | * @author Christian Grothoff | ||
23 | */ | 24 | */ |
24 | #include "platform.h" | 25 | #include "platform.h" |
25 | #include "gnunet_arm_service.h" | 26 | #include "gnunet_arm_service.h" |
@@ -291,30 +292,6 @@ disconnect_notify (void *cls, | |||
291 | } | 292 | } |
292 | 293 | ||
293 | 294 | ||
294 | static int | ||
295 | inbound_notify (void *cls, | ||
296 | const struct GNUNET_PeerIdentity *other, | ||
297 | const struct GNUNET_MessageHeader *message) | ||
298 | { | ||
299 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
300 | "Core provides inbound data from `%s'.\n", | ||
301 | GNUNET_i2s (other)); | ||
302 | return GNUNET_OK; | ||
303 | } | ||
304 | |||
305 | |||
306 | static int | ||
307 | outbound_notify (void *cls, | ||
308 | const struct GNUNET_PeerIdentity *other, | ||
309 | const struct GNUNET_MessageHeader *message) | ||
310 | { | ||
311 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
312 | "Core notifies about outbound data for `%s'.\n", | ||
313 | GNUNET_i2s (other)); | ||
314 | return GNUNET_OK; | ||
315 | } | ||
316 | |||
317 | |||
318 | static size_t | 295 | static size_t |
319 | transmit_ready (void *cls, | 296 | transmit_ready (void *cls, |
320 | size_t size, | 297 | size_t size, |
@@ -413,9 +390,9 @@ init_notify (void *cls, | |||
413 | &init_notify, | 390 | &init_notify, |
414 | &connect_notify, | 391 | &connect_notify, |
415 | &disconnect_notify, | 392 | &disconnect_notify, |
416 | &inbound_notify, | 393 | NULL, |
417 | GNUNET_YES, | 394 | GNUNET_YES, |
418 | &outbound_notify, | 395 | NULL, |
419 | GNUNET_YES, | 396 | GNUNET_YES, |
420 | handlers))); | 397 | handlers))); |
421 | } | 398 | } |
@@ -532,9 +509,9 @@ run (void *cls, | |||
532 | &init_notify, | 509 | &init_notify, |
533 | &connect_notify, | 510 | &connect_notify, |
534 | &disconnect_notify, | 511 | &disconnect_notify, |
535 | &inbound_notify, | 512 | NULL, |
536 | GNUNET_YES, | 513 | GNUNET_YES, |
537 | &outbound_notify, | 514 | NULL, |
538 | GNUNET_YES, | 515 | GNUNET_YES, |
539 | handlers))); | 516 | handlers))); |
540 | } | 517 | } |