![]() |
GNUnet
0.11.x
|
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_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, 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 72 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 85 of file testing_api_cmd_send_peer_ready.c.
References GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED, GNUNET_new, GNUNET_CMDS_PEER_STARTED::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, |
TESTING_CMD_HELPER_write_cb | write_message | ||
) |
Create command.
label | name for command. |
write_message | Callback to write messages to the master loop. |
Definition at line 85 of file testing_api_cmd_send_peer_ready.c.