1#ifndef GNUNET_TESTBED_LIB_H
2#define GNUNET_TESTBED_LIB_H
9#define GNUNET_TESTBED_PREFIX "GNUNET_TESTBED_PREFIX"
127 unsigned int *nports);
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
static uint16_t port
Port number.
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.
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()).
struct GNUNET_TESTBED_System * GNUNET_TESTBED_system_create(const char *testdir, const char *trusted_ip, const char *hostname)
Create a system handle.
uint16_t GNUNET_TESTBED_reserve_port(struct GNUNET_TESTBED_System *system)
Reserve a TCP or UDP port for a peer.
void GNUNET_TESTBED_system_destroy(struct GNUNET_TESTBED_System *system, bool remove_paths)
Free system resources.
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...
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...
uint16_t highport
Highest port we are allowed to use.
uint16_t lowport
Lowest port we are allowed to use.
char * hostname
our hostname
char * trusted_ip
The trusted ip.