cmd to send a helper message if peer is ready. More...
#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_testing_ng_lib.h"
#include "gnunet_testing_plugin.h"
#include "gnunet_testing_barrier.h"
#include "gnunet_testing_netjail_lib.h"
#include "testing_cmds.h"
Go to the source code of this file.
Data Structures | |
struct | SendPeerReadyState |
Struct to hold information for callbacks. More... | |
Functions | |
static enum GNUNET_GenericReturnValue | send_peer_ready_traits (void *cls, const void **ret, const char *trait, unsigned int index) |
Trait function of this cmd does nothing. More... | |
static void | send_peer_ready_cleanup (void *cls) |
The cleanup function of this cmd frees resources the cmd allocated. More... | |
static void | send_peer_ready_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
This function sends a GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED message to the master loop. More... | |
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_send_peer_ready (const char *label, GNUNET_TESTING_cmd_helper_write_cb write_message) |
Create command. More... | |
cmd to send a helper message if peer is ready.
Definition in file testing_api_cmd_send_peer_ready.c.
|
static |
Trait function of this cmd does nothing.
Definition at line 1 of file testing_api_cmd_send_peer_ready.c.
|
static |
The cleanup function of this cmd frees resources the cmd allocated.
Definition at line 74 of file testing_api_cmd_send_peer_ready.c.
References GNUNET_free.
|
static |
This function sends a GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED message to the master loop.
Definition at line 87 of file testing_api_cmd_send_peer_ready.c.
References GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED, GNUNET_new, GNUNET_TESTING_CommandPeerStarted::header, SendPeerReadyState::reply, GNUNET_MessageHeader::size, GNUNET_MessageHeader::type, and SendPeerReadyState::write_message.
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_send_peer_ready | ( | const char * | label, |
GNUNET_TESTING_cmd_helper_write_cb | write_message | ||
) |
Create command.
DEPRECATED This command sends a GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED message to the master loop.
label | name for command. |
write_message | Callback to write messages to the master loop. |
Definition at line 87 of file testing_api_cmd_send_peer_ready.c.