Go to the source code of this file.
Data Structures | |
struct | GNUNET_TESTING_StartPeerState |
Macros | |
#define | GNUNET_TRANSPORT_TESTING_SIMPLE_TRAITS(op, prefix) |
Call op on all simple traits. More... | |
Typedefs | |
typedef void *(* | GNUNET_TESTING_notify_connect_cb) (struct GNUNET_TESTING_Interpreter *is, const struct GNUNET_PeerIdentity *peer) |
Call op on all simple traits.
Definition at line 199 of file gnunet_transport_testing_ng_lib.h.
typedef void *(* GNUNET_TESTING_notify_connect_cb) (struct GNUNET_TESTING_Interpreter *is, const struct GNUNET_PeerIdentity *peer) |
Definition at line 44 of file gnunet_transport_testing_ng_lib.h.
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.
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. |
Definition at line 271 of file testing_api_cmd_start_peer.c.
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_stop_peer | ( | const char * | label, |
const char * | start_label | ||
) |
Create command.
label | name for command. |
start_label | Label of the cmd to start the peer. |
Definition at line 117 of file testing_api_cmd_stop_peer.c.
References GNUNET_new, GNUNET_TESTING_command_new(), StopPeerState::start_label, stop_peer_cleanup(), stop_peer_run(), and stop_peer_traits().
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.
num | The unique node id. |
tl_system | The test system. |
Retrieve peer identity from the test system with the unique node id.
num | The unique node id. |
tl_system | The test system. |
Definition at line 2276 of file testing.c.
References GNUNET_CRYPTO_eddsa_key_get_public(), GNUNET_free, GNUNET_new, GNUNET_TESTING_hostkey_get(), and GNUNET_PeerIdentity::public_key.
Referenced by add_search_string(), connect_peers_run(), join_room_run(), and notify_connect().
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 | ||
) |
Referenced by backchannel_check_run(), and connect_peers_run().
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 | ||
) |
Referenced by connect_peers_run(), start_service_run(), and stop_peer_run().
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 | ) |