Go to the source code of this file.
|
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_start_peer (const char *label, const char *system_label, uint32_t no, const char *node_ip, const char *cfgname, unsigned int broadcast) |
| Create command. More...
|
|
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_stop_peer (const char *label, const char *start_label) |
| Create command. More...
|
|
struct GNUNET_PeerIdentity * | GNUNET_TESTING_get_peer (unsigned int num, const struct GNUNET_TESTING_System *tl_system) |
| Retrieve peer identity from the test system with the unique node id. More...
|
|
enum GNUNET_GenericReturnValue | GNUNET_TRANSPORT_TESTING_get_trait_connected_peers_map (const struct GNUNET_TESTING_Command *cmd, const struct GNUNET_CONTAINER_MultiShortmap **ret) |
|
struct GNUNET_TESTING_Trait | GNUNET_TRANSPORT_TESTING_make_trait_connected_peers_map (const struct GNUNET_CONTAINER_MultiShortmap *value) |
|
enum GNUNET_GenericReturnValue | GNUNET_TRANSPORT_TESTING_get_trait_peer_id (const struct GNUNET_TESTING_Command *cmd, const struct GNUNET_PeerIdentity **ret) |
|
struct GNUNET_TESTING_Trait | GNUNET_TRANSPORT_TESTING_make_trait_peer_id (const struct GNUNET_PeerIdentity *value) |
|
enum GNUNET_GenericReturnValue | GNUNET_TRANSPORT_TESTING_get_trait_hello_size (const struct GNUNET_TESTING_Command *cmd, const size_t **ret) |
|
struct GNUNET_TESTING_Trait | GNUNET_TRANSPORT_TESTING_make_trait_hello_size (const size_t *value) |
|
enum GNUNET_GenericReturnValue | GNUNET_TRANSPORT_TESTING_get_trait_hello (const struct GNUNET_TESTING_Command *cmd, const char **ret) |
|
struct GNUNET_TESTING_Trait | GNUNET_TRANSPORT_TESTING_make_trait_hello (const char *value) |
|
enum GNUNET_GenericReturnValue | GNUNET_TRANSPORT_TESTING_get_trait_application_handle (const struct GNUNET_TESTING_Command *cmd, const struct GNUNET_TRANSPORT_ApplicationHandle **ret) |
|
struct GNUNET_TESTING_Trait | GNUNET_TRANSPORT_TESTING_make_trait_application_handle (const struct GNUNET_TRANSPORT_ApplicationHandle *value) |
|
enum GNUNET_GenericReturnValue | GNUNET_TRANSPORT_TESTING_get_trait_state (const struct GNUNET_TESTING_Command *cmd, const struct GNUNET_TESTING_StartPeerState **ret) |
|
struct GNUNET_TESTING_Trait | GNUNET_TRANSPORT_TESTING_make_trait_state (const struct GNUNET_TESTING_StartPeerState *value) |
|
enum GNUNET_GenericReturnValue | GNUNET_TRANSPORT_TESTING_get_trait_broadcast (const struct GNUNET_TESTING_Command *cmd, const enum GNUNET_GenericReturnValue **ret) |
|
struct GNUNET_TESTING_Trait | GNUNET_TRANSPORT_TESTING_make_trait_broadcast (const enum GNUNET_GenericReturnValue *value) |
|
◆ GNUNET_TRANSPORT_TESTING_SIMPLE_TRAITS
#define GNUNET_TRANSPORT_TESTING_SIMPLE_TRAITS |
( |
|
op, |
|
|
|
prefix |
|
) |
| |
Value: op (
prefix, connected_peers_map,
const struct \
op (
prefix, hello_size,
const size_t) \
op (
prefix, hello,
const char) \
op (
prefix, application_handle,
const struct \
static struct GNUNET_ARM_Operation * op
Current operation.
static char * peer_id
Option –peer.
static int prefix
If printing the value of PREFIX has been requested.
enum State state
current state of profiling
GNUNET_GenericReturnValue
Named constants for return values.
Internal representation of the hash map.
The identity of the host (wraps the signing key of the peer).
Handle for a peer controlled via ARM.
Handle to the TRANSPORT subsystem for application management.
Call op on all simple traits.
Definition at line 235 of file gnunet_testing_transport_lib.h.
◆ GNUNET_TESTING_notify_connect_cb
◆ GNUNET_TESTING_cmd_start_peer()
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_start_peer |
( |
const char * |
label, |
|
|
const char * |
system_label, |
|
|
uint32_t |
no, |
|
|
const char * |
node_ip, |
|
|
const char * |
cfgname, |
|
|
unsigned int |
broadcast |
|
) |
| |
Create command.
- Parameters
-
label | name for command. |
system_label | Label of the cmd to setup a test environment. |
no | Decimal number representing the last byte of the IP address of this peer. |
node_ip | The IP address of this node. |
cfgname | Configuration file name for this peer. |
broadcast | Flag indicating, if broadcast should be switched on. |
- Returns
- command.
◆ GNUNET_TESTING_cmd_stop_peer()
Create command.
- Parameters
-
label | name for command. |
start_label | Label of the cmd to start the peer. |
- Returns
- command.
Definition at line 159 of file testing_arm_cmd_stop_peer.c.
161{
163
168 sps,
174}
struct GNUNET_TESTING_Command GNUNET_TESTING_command_new_ac(void *cls, const char *label, GNUNET_TESTING_CommandRunRoutine run, GNUNET_TESTING_CommandCleanupRoutine cleanup, GNUNET_TESTING_CommandGetTraits traits, struct GNUNET_TESTING_AsyncContext *ac)
Create a new command that may be asynchronous.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
Struct to hold information for callbacks.
const char * start_label
Label of the cmd to start the peer.
const char * label
Label of the cmd.
struct GNUNET_TESTING_AsyncContext ac
static int stop_peer_traits(void *cls, const void **ret, const char *trait, unsigned int index)
Trait function of this cmd does nothing.
static void stop_peer_cleanup(void *cls)
The cleanup function of this cmd frees resources the cmd allocated.
static void stop_peer_run(void *cls, struct GNUNET_TESTING_Interpreter *is)
The run method of this cmd will stop all services of a peer which were used to test the transport ser...
◆ GNUNET_TESTING_get_peer()
struct GNUNET_PeerIdentity * GNUNET_TESTING_get_peer |
( |
unsigned int |
num, |
|
|
const struct GNUNET_TESTING_System * |
tl_system |
|
) |
| |
◆ GNUNET_TRANSPORT_TESTING_get_trait_connected_peers_map()
◆ GNUNET_TRANSPORT_TESTING_make_trait_connected_peers_map()
◆ GNUNET_TRANSPORT_TESTING_get_trait_peer_id()
◆ GNUNET_TRANSPORT_TESTING_make_trait_peer_id()
◆ GNUNET_TRANSPORT_TESTING_get_trait_hello_size()
◆ GNUNET_TRANSPORT_TESTING_make_trait_hello_size()
◆ GNUNET_TRANSPORT_TESTING_get_trait_hello()
◆ GNUNET_TRANSPORT_TESTING_make_trait_hello()
◆ GNUNET_TRANSPORT_TESTING_get_trait_application_handle()
◆ GNUNET_TRANSPORT_TESTING_make_trait_application_handle()
◆ GNUNET_TRANSPORT_TESTING_get_trait_state()
◆ GNUNET_TRANSPORT_TESTING_make_trait_state()
◆ GNUNET_TRANSPORT_TESTING_get_trait_broadcast()
◆ GNUNET_TRANSPORT_TESTING_make_trait_broadcast()