aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_lib.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-12-07 15:34:26 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-12-07 15:34:26 +0000
commit81f52a300c6569a292db1137690347b0986fe953 (patch)
treeade90606789541153e90af872c290741fd559e41 /src/include/gnunet_testing_lib.h
parentc2565e9520ced234dcf2615a0f215cf8ac7db2f6 (diff)
downloadgnunet-81f52a300c6569a292db1137690347b0986fe953.tar.gz
gnunet-81f52a300c6569a292db1137690347b0986fe953.zip
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r--src/include/gnunet_testing_lib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index e3e10ce45..711d676a2 100644
--- a/src/include/gnunet_testing_lib.h
+++ b/src/include/gnunet_testing_lib.h
@@ -614,6 +614,29 @@ GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d,
614 int delete_files, int allow_restart); 614 int delete_files, int allow_restart);
615 615
616 616
617
618/**
619 * Create a new configuration using the given configuration
620 * as a template; however, each PORT in the existing cfg
621 * must be renumbered by incrementing "*port". If we run
622 * out of "*port" numbers, return NULL.
623 *
624 * @param cfg template configuration
625 * @param off the current peer offset
626 * @param port port numbers to use, update to reflect
627 * port numbers that were used
628 * @param upnum number to make unix domain socket names unique
629 * @param hostname hostname of the controlling host, to allow control connections from
630 * @param fdnum number used to offset the unix domain socket for grouped processes
631 * (such as statistics or peerinfo, which can be shared among others)
632 *
633 * @return new configuration, NULL on error
634 */
635struct GNUNET_CONFIGURATION_Handle *
636GNUNET_TESTING_create_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, uint32_t off,
637 uint16_t * port, uint32_t * upnum, const char *hostname,
638 uint32_t * fdnum);
639
617/** 640/**
618 * Changes the configuration of a GNUnet daemon. 641 * Changes the configuration of a GNUnet daemon.
619 * 642 *