diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-12-21 12:43:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-12-21 12:43:03 +0000 |
commit | 7e578a07fcba4e78ec2d503409b7310d016aad9a (patch) | |
tree | d36e99e6e67a24d567b1df667f1e3e449f2a5b80 /src/transport/test_transport_api_reliability.c | |
parent | 5777b7bdd024b6fc585f0b8b791b01ffbef72885 (diff) | |
download | gnunet-7e578a07fcba4e78ec2d503409b7310d016aad9a.tar.gz gnunet-7e578a07fcba4e78ec2d503409b7310d016aad9a.zip |
added fix
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index 31c597008..96e0d988d 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -455,6 +455,11 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
455 | GNUNET_assert (p->th != NULL); | 455 | GNUNET_assert (p->th != NULL); |
456 | } | 456 | } |
457 | 457 | ||
458 | static size_t | ||
459 | notify_ready_connect (void *cls, size_t size, void *buf) | ||
460 | { | ||
461 | return 0; | ||
462 | } | ||
458 | 463 | ||
459 | static void | 464 | static void |
460 | exchange_hello_last (void *cls, | 465 | exchange_hello_last (void *cls, |
@@ -473,6 +478,14 @@ exchange_hello_last (void *cls, | |||
473 | GNUNET_assert (GNUNET_OK == | 478 | GNUNET_assert (GNUNET_OK == |
474 | GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) | 479 | GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) |
475 | message, &me->id)); | 480 | message, &me->id)); |
481 | |||
482 | GNUNET_assert(NULL != GNUNET_TRANSPORT_notify_transmit_ready (p2.th, | ||
483 | &p1.id, | ||
484 | sizeof (struct GNUNET_MessageHeader), 0, | ||
485 | TIMEOUT, | ||
486 | ¬ify_ready_connect, | ||
487 | NULL)); | ||
488 | |||
476 | /* both HELLOs exchanged, get ready to test transmission! */ | 489 | /* both HELLOs exchanged, get ready to test transmission! */ |
477 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 490 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
478 | "Finished exchanging HELLOs, now waiting for transmission!\n"); | 491 | "Finished exchanging HELLOs, now waiting for transmission!\n"); |