diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-08-24 13:42:47 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-08-24 13:42:47 +0000 |
commit | df0c0a796560d71065988a961f0046f8a0377456 (patch) | |
tree | df358fa627f34c0a598612cf681a7cc0a6f37a9f /src/transport/transport-testing.c | |
parent | 0631fa0b614e463c585162b065f56f31eeb13dfa (diff) | |
download | gnunet-df0c0a796560d71065988a961f0046f8a0377456.tar.gz gnunet-df0c0a796560d71065988a961f0046f8a0377456.zip |
new test to check transport start and shutdown
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r-- | src/transport/transport-testing.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c index 18a002d02..61c392d77 100644 --- a/src/transport/transport-testing.c +++ b/src/transport/transport-testing.c | |||
@@ -266,8 +266,8 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct PeerContext *p) | |||
266 | 266 | ||
267 | if (p->cfg != NULL) | 267 | if (p->cfg != NULL) |
268 | GNUNET_CONFIGURATION_destroy (p->cfg); | 268 | GNUNET_CONFIGURATION_destroy (p->cfg); |
269 | |||
270 | GNUNET_free (p); | 269 | GNUNET_free (p); |
270 | p = NULL; | ||
271 | } | 271 | } |
272 | 272 | ||
273 | /** | 273 | /** |
@@ -317,13 +317,9 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct PeerContext *p1, | |||
317 | } | 317 | } |
318 | 318 | ||
319 | /** | 319 | /** |
320 | * Cancels a peer connect request | 320 | * Cancel the request to connect two peers |
321 | * before. | 321 | * Tou MUST cancel the request if you stop the peers before the peers connected succesfully |
322 | * @param p1 peer 1 | 322 | * @param cc a connect request handle |
323 | * @param p2 peer 2 | ||
324 | * @param cb the callback to call | ||
325 | * @param cb_cls callback cls | ||
326 | * @return connect context | ||
327 | */ | 323 | */ |
328 | void | 324 | void |
329 | GNUNET_TRANSPORT_TESTING_connect_peers_cancel (GNUNET_TRANSPORT_TESTING_ConnectRequest ccr) | 325 | GNUNET_TRANSPORT_TESTING_connect_peers_cancel (GNUNET_TRANSPORT_TESTING_ConnectRequest ccr) |