diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-31 11:31:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-31 11:31:48 +0000 |
commit | f51c15f484bbcf0bd598c57f53fbd482902699d7 (patch) | |
tree | 6f056c2b8d9be6212c203f7be9c381b66cdebe17 /src | |
parent | 5c471ef07d3ac0eee0b426d6324073eef1e97220 (diff) | |
download | gnunet-f51c15f484bbcf0bd598c57f53fbd482902699d7.tar.gz gnunet-f51c15f484bbcf0bd598c57f53fbd482902699d7.zip |
report port numbers
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/fs_test_lib.c | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c index 9c6e6e05c..676450efe 100644 --- a/src/fs/fs_test_lib.c +++ b/src/fs/fs_test_lib.c | |||
@@ -253,6 +253,7 @@ notify_running (void *cls, | |||
253 | { | 253 | { |
254 | struct StartContext *sctx = cls; | 254 | struct StartContext *sctx = cls; |
255 | unsigned int i; | 255 | unsigned int i; |
256 | unsigned long long fsport; | ||
256 | 257 | ||
257 | if (emsg != NULL) | 258 | if (emsg != NULL) |
258 | { | 259 | { |
@@ -277,13 +278,25 @@ notify_running (void *cls, | |||
277 | GNUNET_SCHEDULER_cancel (sctx->sched, | 278 | GNUNET_SCHEDULER_cancel (sctx->sched, |
278 | sctx->timeout_task); | 279 | sctx->timeout_task); |
279 | for (i=0;i<sctx->total;i++) | 280 | for (i=0;i<sctx->total;i++) |
280 | sctx->daemons[i]->fs = GNUNET_FS_start (sctx->sched, | 281 | { |
281 | sctx->daemons[i]->cfg, | 282 | fsport = 0; |
282 | "<tester>", | 283 | GNUNET_break (GNUNET_OK == |
283 | &progress_cb, | 284 | GNUNET_CONFIGURATION_get_value_number (sctx->daemons[i]->cfg, |
284 | sctx->daemons[i], | 285 | "fs", |
285 | GNUNET_FS_FLAGS_NONE, | 286 | "PORT", |
286 | GNUNET_FS_OPTIONS_END); | 287 | &fsport)); |
288 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
289 | _("Testing connects to port %llu for peer %u\n"), | ||
290 | fsport, | ||
291 | i); | ||
292 | sctx->daemons[i]->fs = GNUNET_FS_start (sctx->sched, | ||
293 | sctx->daemons[i]->cfg, | ||
294 | "<tester>", | ||
295 | &progress_cb, | ||
296 | sctx->daemons[i], | ||
297 | GNUNET_FS_FLAGS_NONE, | ||
298 | GNUNET_FS_OPTIONS_END); | ||
299 | } | ||
287 | GNUNET_free (sctx); | 300 | GNUNET_free (sctx); |
288 | } | 301 | } |
289 | } | 302 | } |