Go to the source code of this file.
◆ send_cleanup()
static void send_cleanup |
( |
void * |
cls | ) |
|
|
static |
◆ send_traits()
Return trains of the send
command.
- Parameters
-
| cls | closure. |
[out] | ret | result |
| trait | name of the trait. |
| index | index number of the object to offer. |
- Returns
- GNUNET_OK on success. GNUNET_NO if no trait was found
Definition at line 51 of file testing_dhtu_cmd_send.c.
◆ send_run()
Run the 'send' command.
- Parameters
-
cls | closure. |
is | interpreter state. |
Definition at line 86 of file testing_dhtu_cmd_send.c.
93 GNUNET_TESTING_get_trait_XXX (other_cmd,
uint32_t data
The data value.
void GNUNET_TESTING_async_finish(struct GNUNET_TESTING_AsyncContext *ac)
The asynchronous command of ac has finished.
const struct GNUNET_TESTING_Command * GNUNET_TESTING_interpreter_lookup_command(struct GNUNET_TESTING_Interpreter *is, const char *label)
Lookup command by label.
struct GNUNET_TESTING_AsyncContext ac
Mandatory context for async commands.
◆ GNUNET_TESTING_DHTU_cmd_send()
Definition at line 86 of file testing_dhtu_cmd_send.c.
#define GNUNET_TESTING_CMD_MAX_LABEL_LENGTH
API for writing an interpreter to test GNUnet components.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
A command to be run by the interpreter.
char label[127+1]
Label for the command.
void * cls
Closure for all commands with command-specific context information.
static void send_cleanup(void *cls)
static void send_run(void *cls, struct GNUNET_TESTING_Interpreter *is)
Run the 'send' command.
static enum GNUNET_GenericReturnValue send_traits(void *cls, const void **ret, const char *trait, unsigned int index)
Return trains of the send command.