aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_lib-new.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_testing_lib-new.h')
-rw-r--r--src/include/gnunet_testing_lib-new.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/include/gnunet_testing_lib-new.h b/src/include/gnunet_testing_lib-new.h
index 802839d17..aef8c763d 100644
--- a/src/include/gnunet_testing_lib-new.h
+++ b/src/include/gnunet_testing_lib-new.h
@@ -59,21 +59,23 @@ struct GNUNET_TESTING_Peer;
59 59
60 60
61/** 61/**
62 * Create a system handle. There must only be one system 62 * Create a system handle. There must only be one system handle per operating
63 * handle per operating system. Uses a default range for allowed ports. 63 * system. Uses a default range for allowed ports. Ports are still tested for
64 * Ports are still tested for availability. 64 * availability.
65 * 65 *
66 * @param testdir only the directory name without any path. This is used for 66 * @param testdir only the directory name without any path. This is used for all
67 * all service homes; the directory will be created in a temporary 67 * service homes; the directory will be created in a temporary location
68 * location depending on the underlying OS 68 * depending on the underlying OS
69 * @param controller hostname of the controlling host, 69 * @param controller hostname of the controlling host, service configurations
70 * service configurations are modified to allow 70 * are modified to allow control connections from this host; can be NULL
71 * control connections from this host; can be NULL 71 * @param hostname the hostname of the system we are using for testing; NULL for
72 * localhost
72 * @return handle to this system, NULL on error 73 * @return handle to this system, NULL on error
73 */ 74 */
74struct GNUNET_TESTING_System * 75struct GNUNET_TESTING_System *
75GNUNET_TESTING_system_create (const char *testdir, 76GNUNET_TESTING_system_create (const char *testdir,
76 const char *controller); 77 const char *controller,
78 const char *hostname);
77 79
78 80
79/** 81/**
@@ -89,6 +91,8 @@ GNUNET_TESTING_system_create (const char *testdir,
89 * @param controller hostname of the controlling host, 91 * @param controller hostname of the controlling host,
90 * service configurations are modified to allow 92 * service configurations are modified to allow
91 * control connections from this host; can be NULL 93 * control connections from this host; can be NULL
94 * @param hostname the hostname of the system we are using for testing; NULL for
95 * localhost
92 * @param lowport lowest port number this system is allowed to allocate (inclusive) 96 * @param lowport lowest port number this system is allowed to allocate (inclusive)
93 * @param highport highest port number this system is allowed to allocate (exclusive) 97 * @param highport highest port number this system is allowed to allocate (exclusive)
94 * @return handle to this system, NULL on error 98 * @return handle to this system, NULL on error
@@ -96,6 +100,7 @@ GNUNET_TESTING_system_create (const char *testdir,
96struct GNUNET_TESTING_System * 100struct GNUNET_TESTING_System *
97GNUNET_TESTING_system_create_with_portrange (const char *testdir, 101GNUNET_TESTING_system_create_with_portrange (const char *testdir,
98 const char *controller, 102 const char *controller,
103 const char *hostname,
99 uint16_t lowport, 104 uint16_t lowport,
100 uint16_t highport); 105 uint16_t highport);
101 106