GNUnet 0.22.1
gnunet_testbed_lib.h
Go to the documentation of this file.
1#ifndef GNUNET_TESTBED_LIB_H
2#define GNUNET_TESTBED_LIB_H
3
8
9#define GNUNET_TESTBED_PREFIX "GNUNET_TESTBED_PREFIX"
10
32 const char *testdir,
33 const char *trusted_ip,
34 const char *hostname,
35 uint16_t lowport,
36 uint16_t highport);
37
38
61 const char *testdir,
62 const char *trusted_ip,
63 const char *hostname);
64
65
73void
75 struct GNUNET_TESTBED_System *system,
76 bool remove_paths);
77
78
85uint16_t
87 struct GNUNET_TESTBED_System *system);
88
89
97void
99 struct GNUNET_TESTBED_System *system,
100 uint16_t port);
101
102
124 struct GNUNET_TESTBED_System *system,
126 uint16_t **ports,
127 unsigned int *nports);
128
129
130#endif
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
Definition: gnunet-arm.c:108
static uint16_t port
Port number.
Definition: gnunet-bcd.c:146
struct GNUNET_TESTBED_System * GNUNET_TESTBED_system_create_with_portrange(const char *testdir, const char *trusted_ip, const char *hostname, uint16_t lowport, uint16_t highport)
Create a system handle.
Definition: testbed.c:105
void GNUNET_TESTBED_release_port(struct GNUNET_TESTBED_System *system, uint16_t port)
Release reservation of a TCP or UDP port for a peer (used during #GNUNET_TESTBED_peer_destroy()).
Definition: testbed.c:252
struct GNUNET_TESTBED_System * GNUNET_TESTBED_system_create(const char *testdir, const char *trusted_ip, const char *hostname)
Create a system handle.
Definition: testbed.c:136
uint16_t GNUNET_TESTBED_reserve_port(struct GNUNET_TESTBED_System *system)
Reserve a TCP or UDP port for a peer.
Definition: testbed.c:163
void GNUNET_TESTBED_system_destroy(struct GNUNET_TESTBED_System *system, bool remove_paths)
Free system resources.
Definition: testbed.c:150
enum GNUNET_GenericReturnValue GNUNET_TESTBED_configuration_create(struct GNUNET_TESTBED_System *system, struct GNUNET_CONFIGURATION_Handle *cfg, uint16_t **ports, unsigned int *nports)
Create a new configuration using the given configuration as a template; ports and paths will be modif...
Definition: testbed.c:532
GNUNET_GenericReturnValue
Named constants for return values.
Handle for a system on which GNUnet peers are executed; a system is used for reserving unique paths a...
Definition: testbed.c:54
uint16_t highport
Highest port we are allowed to use.
Definition: testbed.c:100
uint16_t lowport
Lowest port we are allowed to use.
Definition: testbed.c:95
char * hostname
our hostname
Definition: testbed.c:70
char * trusted_ip
The trusted ip.
Definition: testbed.c:65