Go to the source code of this file.
◆ stop_testing_system_cleanup()
static void stop_testing_system_cleanup |
( |
void * |
cls | ) |
|
|
static |
Code to clean up resource this cmd used.
- Parameters
-
cls | closure |
cmd | current CMD being cleaned up. |
Definition at line 72 of file testing_api_cmd_netjail_stop_cmds_helper.c.
#define GNUNET_free(ptr)
Wrapper around free.
Struct to store information handed over to callbacks.
References GNUNET_free.
◆ stop_testing_system_run()
This function stops the helper process for each node.
- Parameters
-
cls | closure. |
is | interpreter state. |
Definition at line 87 of file testing_api_cmd_netjail_stop_cmds_helper.c.
100 for (
int i = 1; i <= shs->
known; i++)
110 for (
int i = 1; i <= shs->
global_n; i++)
112 for (
int j = 1; j <= shs->
local_m; j++)
struct GNUNET_TESTING_Interpreter * is
enum GNUNET_GenericReturnValue GNUNET_TESTING_get_trait_helper_handles(const struct GNUNET_TESTING_Command *cmd, const struct GNUNET_HELPER_Handle ***ret)
const struct GNUNET_TESTING_Command * GNUNET_TESTING_interpreter_lookup_command(struct GNUNET_TESTING_Interpreter *is, const char *label)
Lookup command by label.
void GNUNET_HELPER_stop(struct GNUNET_HELPER_Handle *h, int soft_kill)
Kills the helper, closes the pipe, frees the handle and calls wait() on the helper process.
#define GNUNET_log(kind,...)
@ GNUNET_ERROR_TYPE_DEBUG
The handle to a helper process.
A command to be run by the interpreter.
unsigned int known
Number of global known nodes.
References StopHelperState::global_n, GNUNET_ERROR_TYPE_DEBUG, GNUNET_free, GNUNET_HELPER_stop(), GNUNET_log, GNUNET_TESTING_get_trait_helper_handles(), GNUNET_TESTING_interpreter_lookup_command(), GNUNET_YES, is, StopHelperState::known, and StopHelperState::local_m.
◆ GNUNET_TESTING_cmd_stop_cmds_helper()
Create command.
- Parameters
-
label | name for command. |
helper_start_label | label of the cmd to start the test system. |
topology | The complete topology information. |
- Returns
- command.
Definition at line 87 of file testing_api_cmd_netjail_stop_cmds_helper.c.
enum GNUNET_TESTBED_TopologyOption topology
The topology to generate.
struct GNUNET_TESTING_Command GNUNET_TESTING_command_new(void *cls, const char *label, GNUNET_TESTING_CommandRunRoutine run, GNUNET_TESTING_CommandCleanupRoutine cleanup, GNUNET_TESTING_CommandGetTraits traits, struct GNUNET_TESTING_AsyncContext *ac)
Create a new command.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
struct GNUNET_TESTING_NetjailTopology * topology
The complete topology information.
const char * helper_start_label
static void stop_testing_system_run(void *cls, struct GNUNET_TESTING_Interpreter *is)
This function stops the helper process for each node.
static void stop_testing_system_cleanup(void *cls)
Code to clean up resource this cmd used.