diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-17 14:59:10 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-17 14:59:10 +0000 |
commit | eb3f4006fc74ef71296e53d83b1d4b6990b639d1 (patch) | |
tree | 39704da526a6107925ebec9684d6a1e7d65f6e4e /src/include/gnunet_testbed_service.h | |
parent | 90b5375e31986484f5007ec62c57f455bb8178dc (diff) | |
download | gnunet-eb3f4006fc74ef71296e53d83b1d4b6990b639d1.tar.gz gnunet-eb3f4006fc74ef71296e53d83b1d4b6990b639d1.zip |
helper integration to GNUNET_TESTBED_host_run_()
todo: add controller start callback
with the configuration with which the controller is started
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r-- | src/include/gnunet_testbed_service.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h index 736a0c03c..a190b67a7 100644 --- a/src/include/gnunet_testbed_service.h +++ b/src/include/gnunet_testbed_service.h | |||
@@ -414,14 +414,16 @@ typedef void (*GNUNET_TESTBED_ControllerErrorCallback)(void *cls, | |||
414 | 414 | ||
415 | 415 | ||
416 | /** | 416 | /** |
417 | * Starts a controller process at the host | 417 | * Starts a controller process at the host. FIXME: add controller start callback |
418 | * with the configuration with which the controller is started | ||
418 | * | 419 | * |
419 | * @param system used for reserving ports if host is NULL and to determine | 420 | * @param controller_ip the ip address of the controller. Will be set as TRUSTED |
420 | * which 'host' to set as TRUSTED ('controller') when starting testbed remotely | 421 | * host when starting testbed controller at host |
421 | * @param host the host where the controller has to be started; NULL for localhost | 422 | * @param host the host where the controller has to be started; NULL for localhost |
422 | * @param cfg template configuration to use for the remote controller; will | 423 | * @param cfg template configuration to use for the remote controller; the |
423 | * be modified to contain the actual host/port/unixpath used for | 424 | * remote controller will be started with a slightly modified |
424 | * the testbed service | 425 | * configuration (port numbers, unix domain sockets and service home |
426 | * values are changed as per TESTING library on the remote host) | ||
425 | * @param cec function called if the contoller dies unexpectedly; will not be | 427 | * @param cec function called if the contoller dies unexpectedly; will not be |
426 | * invoked after GNUNET_TESTBED_controller_stop, if 'cec' was called, | 428 | * invoked after GNUNET_TESTBED_controller_stop, if 'cec' was called, |
427 | * GNUNET_TESTBED_controller_stop must no longer be called; will | 429 | * GNUNET_TESTBED_controller_stop must no longer be called; will |
@@ -431,9 +433,9 @@ typedef void (*GNUNET_TESTBED_ControllerErrorCallback)(void *cls, | |||
431 | * @return the controller process handle, NULL on errors | 433 | * @return the controller process handle, NULL on errors |
432 | */ | 434 | */ |
433 | struct GNUNET_TESTBED_ControllerProc * | 435 | struct GNUNET_TESTBED_ControllerProc * |
434 | GNUNET_TESTBED_controller_start (struct GNUNET_TESTING_System *system, | 436 | GNUNET_TESTBED_controller_start (const char *controller_ip, |
435 | struct GNUNET_TESTBED_Host *host, | 437 | struct GNUNET_TESTBED_Host *host, |
436 | struct GNUNET_CONFIGURATION_Handle *cfg, | 438 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
437 | GNUNET_TESTBED_ControllerErrorCallback cec, | 439 | GNUNET_TESTBED_ControllerErrorCallback cec, |
438 | void *cec_cls); | 440 | void *cec_cls); |
439 | 441 | ||