Go to the source code of this file.
Data Structures | |
struct | ConnectPeersState |
Struct to store information needed in callbacks. More... | |
struct | StartPeerState |
struct | TestState |
Macros | |
#define | GNUNET_TRANSPORT_MAKE_DECL_SIMPLE_TRAIT(name, type) |
Create headers for a trait with name name for statically allocated data of type type. More... | |
#define | GNUNET_TRANSPORT_MAKE_IMPL_SIMPLE_TRAIT(name, type) |
Create C implementation for a trait with name name for statically allocated data of type type. More... | |
#define | GNUNET_TRANSPORT_SIMPLE_TRAITS(op) |
Call op on all simple traits. More... | |
Typedefs | |
typedef void *(* | GNUNET_TRANSPORT_notify_connect_cb) (struct GNUNET_TESTING_Interpreter *is, const struct GNUNET_PeerIdentity *peer) |
Create headers for a trait with name name for statically allocated data of type type.
Definition at line 357 of file transport-testing-cmds.h.
Create C implementation for a trait with name name for statically allocated data of type type.
Definition at line 371 of file transport-testing-cmds.h.
#define GNUNET_TRANSPORT_SIMPLE_TRAITS | ( | op | ) |
Call op on all simple traits.
Definition at line 398 of file transport-testing-cmds.h.
typedef void*(* GNUNET_TRANSPORT_notify_connect_cb) (struct GNUNET_TESTING_Interpreter *is, const struct GNUNET_PeerIdentity *peer) |
Definition at line 32 of file transport-testing-cmds.h.
struct GNUNET_TESTING_Command GNUNET_TRANSPORT_cmd_start_peer | ( | const char * | label, |
const char * | system_label, | ||
uint32_t | no, | ||
const char * | node_ip, | ||
struct GNUNET_MQ_MessageHandler * | handlers, | ||
const char * | cfgname, | ||
GNUNET_TRANSPORT_notify_connect_cb | notify_connect, | ||
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. |
handlers | Handler for messages received by this peer. |
cfgname | Configuration file name for this peer. |
notify_connect | Method which will be called, when a peer connects. |
broadcast | Flag indicating, if broadcast should be switched on. |
Definition at line 408 of file transport_api_cmd_start_peer.c.
struct GNUNET_TESTING_Command GNUNET_TRANSPORT_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 124 of file transport_api_cmd_stop_peer.c.
struct GNUNET_TESTING_Command GNUNET_TRANSPORT_cmd_connect_peers | ( | const char * | label, |
const char * | start_peer_label, | ||
const char * | create_label, | ||
uint32_t | num, | ||
struct GNUNET_TESTING_NetjailTopology * | topology, | ||
unsigned int | additional_connects | ||
) |
Create command.
label | name for command |
start_peer_label | Label of the cmd to start a peer. |
create_label | Label of the cmd which started the test system. |
num | Number globally identifying the node. |
topology | The topology for the test setup. |
additional_connects | Number of additional connects this cmd will wait for not triggered by this cmd. |
Definition at line 218 of file transport_api_cmd_connecting_peers.c.
struct GNUNET_TESTING_Command GNUNET_TRANSPORT_cmd_send_simple | ( | const char * | label, |
const char * | start_peer_label, | ||
const char * | create_label, | ||
uint32_t | num, | ||
struct GNUNET_TESTING_NetjailTopology * | topology | ||
) |
Create command.
label | name for command. |
start_peer_label | Label of the cmd to start a peer. |
create_label | Label of the cmd which started the test system. |
num | Number globally identifying the node. |
topology | The topology for the test setup. |
Definition at line 114 of file transport_api_cmd_send_simple.c.
struct GNUNET_TESTING_Command GNUNET_TRANSPORT_cmd_send_simple_performance | ( | const char * | label, |
const char * | start_peer_label, | ||
const char * | create_label, | ||
uint32_t | num, | ||
int | size, | ||
int | max_send, | ||
struct GNUNET_TESTING_NetjailTopology * | topology | ||
) |
label | name for command. |
start_peer_label | Label of the cmd to start a peer. |
create_label | Label of the cmd which started the test system. |
num | Number globally identifying the node. |
size | The size of the test message to send. |
max_send | The number of messages to send. |
topology | The topology for the test setup. |
Definition at line 164 of file transport_api_cmd_send_simple_performance.c.
struct GNUNET_TESTING_Command GNUNET_TRANSPORT_cmd_backchannel_check | ( | const char * | label, |
const char * | start_peer_label, | ||
const char * | create_label, | ||
uint32_t | num, | ||
unsigned int | node_n, | ||
unsigned int | namespace_n, | ||
struct GNUNET_TESTING_NetjailTopology * | topology | ||
) |
Create command.
label | name for command. |
start_peer_label | Label of the cmd to start a peer. |
create_label | Label of the cmd to create the testing system. |
num | Number globally identifying the node. |
node_n | The number of the node in a network namespace. |
namespace_n | The number of the network namespace. |
topology | The topology for the test setup. |
Definition at line 520 of file transport_api_cmd_backchannel_check.c.
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_peer_id | ( | const struct GNUNET_TESTING_Command * | cmd, |
const struct GNUNET_PeerIdentity ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_peer_id | ( | const struct GNUNET_PeerIdentity * | value | ) |
Definition at line 1 of file transport_api_traits.c.
Referenced by start_peer_traits().
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_connected_peers_map | ( | const struct GNUNET_TESTING_Command * | cmd, |
const struct GNUNET_CONTAINER_MultiShortmap ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
Referenced by send_simple_run().
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_connected_peers_map | ( | const struct GNUNET_CONTAINER_MultiShortmap * | value | ) |
Definition at line 1 of file transport_api_traits.c.
Referenced by start_peer_traits().
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_hello_size | ( | const struct GNUNET_TESTING_Command * | cmd, |
const size_t ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_hello_size | ( | const size_t * | value | ) |
Definition at line 1 of file transport_api_traits.c.
Referenced by start_peer_traits().
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_hello | ( | const struct GNUNET_TESTING_Command * | cmd, |
const char ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_hello | ( | const char * | value | ) |
Definition at line 1 of file transport_api_traits.c.
Referenced by start_peer_traits().
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_application_handle | ( | const struct GNUNET_TESTING_Command * | cmd, |
const struct GNUNET_TRANSPORT_ApplicationHandle ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
Referenced by backchannel_check_run(), and connect_peers_run().
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_application_handle | ( | const struct GNUNET_TRANSPORT_ApplicationHandle * | value | ) |
Definition at line 1 of file transport_api_traits.c.
Referenced by start_peer_traits().
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_connect_peer_state | ( | const struct GNUNET_TESTING_Command * | cmd, |
const struct ConnectPeersState ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_connect_peer_state | ( | const struct ConnectPeersState * | value | ) |
Definition at line 1 of file transport_api_traits.c.
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_state | ( | const struct GNUNET_TESTING_Command * | cmd, |
const struct StartPeerState ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
Referenced by stop_peer_run().
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_state | ( | const struct StartPeerState * | value | ) |
Definition at line 1 of file transport_api_traits.c.
Referenced by start_peer_traits().
enum GNUNET_GenericReturnValue GNUNET_TRANSPORT_get_trait_broadcast | ( | const struct GNUNET_TESTING_Command * | cmd, |
const enum GNUNET_GenericReturnValue ** | ret | ||
) |
Definition at line 1 of file transport_api_traits.c.
Referenced by connect_peers_run().
struct GNUNET_TESTING_Trait GNUNET_TRANSPORT_make_trait_broadcast | ( | const enum GNUNET_GenericReturnValue * | value | ) |
Definition at line 1 of file transport_api_traits.c.
Referenced by start_peer_traits().