aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-07-04 15:43:33 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-07-04 15:43:33 +0000
commit671e78a94bb04d31879f24453bbeda6791dba9ed (patch)
tree31d3fd6c63d60955c41995fb185ff6c9bb2dfdc7 /src/include/gnunet_testbed_service.h
parent46b8a4d6a46976cac5b83dcff63240c03583943e (diff)
downloadgnunet-671e78a94bb04d31879f24453bbeda6791dba9ed.tar.gz
gnunet-671e78a94bb04d31879f24453bbeda6791dba9ed.zip
-TESTBED controller_link_2
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h58
1 files changed, 41 insertions, 17 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index d36f5aa8e..2fffb0fc8 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -528,26 +528,25 @@ GNUNET_TESTBED_cancel_registration (struct GNUNET_TESTBED_HostRegistrationHandle
528 528
529 529
530/** 530/**
531 * Create a link from a 'master' controller to a slave controller. 531 * Create a link from slave controller to delegated controller. Whenever the
532 * Whenever the master controller is asked to start a peer at the 532 * master controller is asked to start a peer at the delegated controller the
533 * given 'delegated_host', it will delegate the request to the 533 * request will be routed towards slave controller (if a route exists). The
534 * specified slave controller. Note that the slave controller runs at 534 * slave controller will then route it to the delegated controller. The
535 * the 'slave_host', which may or may not be the same host as the 535 * configuration of the slave controller is given and to be used to either
536 * 'delegated_host' (for hierarchical delegations). The configuration 536 * create the slave controller or to connect to an existing slave controller
537 * of the slave controller is given and to be used to either create 537 * process. 'is_subordinate' specifies if the given slave controller should be
538 * the slave controller or to connect to an existing slave controller 538 * started and managed by the master controller, or if the slave already has a
539 * process. 'is_subordinate' specifies if the given slave controller 539 * master and this is just a secondary master that is also allowed to use the
540 * should be started and managed by the master controller, or if the 540 * existing slave.
541 * slave already has a master and this is just a secondary master that
542 * is also allowed to use the existing slave.
543 * 541 *
544 * @param master handle to the master controller who creates the association 542 * @param master handle to the master controller who creates the association
545 * @param delegated_host requests to which host should be delegated 543 * @param delegated_host requests to which host should be delegated; cannot be NULL
546 * @param slave_host which host is used to run the slave controller 544 * @param slave_host which host is used to run the slave controller; use NULL to
545 * make the master controller connect to the delegated host
547 * @param slave_cfg configuration to use for the slave controller 546 * @param slave_cfg configuration to use for the slave controller
548 * @param is_subordinate GNUNET_YES if the slave should be started (and stopped) 547 * @param is_subordinate GNUNET_YES if the controller at delegated_host should
549 * by the master controller; GNUNET_NO if we are just 548 * be started by the master controller; GNUNET_NO if we are just
550 * allowed to use the slave via TCP/IP 549 * allowed to use the slave via TCP/IP
551 */ 550 */
552void 551void
553GNUNET_TESTBED_controller_link (struct GNUNET_TESTBED_Controller *master, 552GNUNET_TESTBED_controller_link (struct GNUNET_TESTBED_Controller *master,
@@ -558,6 +557,31 @@ GNUNET_TESTBED_controller_link (struct GNUNET_TESTBED_Controller *master,
558 557
559 558
560/** 559/**
560 * Same as the GNUNET_TESTBED_controller_link, however expects configuration in
561 * serialized and compressed
562 *
563 * @param master handle to the master controller who creates the association
564 * @param delegated_host requests to which host should be delegated; cannot be NULL
565 * @param slave_host which host is used to run the slave controller; use NULL to
566 * make the master controller connect to the delegated host
567 * @param scfg serialized and compressed configuration
568 * @param scfg_size the size scfg
569 * @param cfg_size the size of uncompressed serialized configuration
570 * @param is_subordinate GNUNET_YES if the controller at delegated_host should
571 * be started by the master controller; GNUNET_NO if we are just
572 * allowed to use the slave via TCP/IP
573 */
574void
575GNUNET_TESTBED_controller_link_2 (struct GNUNET_TESTBED_Controller *master,
576 struct GNUNET_TESTBED_Host *delegated_host,
577 struct GNUNET_TESTBED_Host *slave_host,
578 const char *scfg,
579 size_t scfg_size,
580 size_t cfg_size,
581 int is_subordinate);
582
583
584/**
561 * Create the given peer at the specified host using the given 585 * Create the given peer at the specified host using the given
562 * controller. If the given controller is not running on the target 586 * controller. If the given controller is not running on the target
563 * host, it should find or create a controller at the target host and 587 * host, it should find or create a controller at the target host and