diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-07 15:34:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-07 15:34:26 +0000 |
commit | 81f52a300c6569a292db1137690347b0986fe953 (patch) | |
tree | ade90606789541153e90af872c290741fd559e41 /src/include/gnunet_testing_lib.h | |
parent | c2565e9520ced234dcf2615a0f215cf8ac7db2f6 (diff) | |
download | gnunet-81f52a300c6569a292db1137690347b0986fe953.tar.gz gnunet-81f52a300c6569a292db1137690347b0986fe953.zip |
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 23 |
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 | */ | ||
635 | struct GNUNET_CONFIGURATION_Handle * | ||
636 | GNUNET_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 | * |