#include "platform.h"#include "gnunet_util_lib.h"#include "gnunet_testing_ng_lib.h"#include "gnunet_testing_netjail_lib.h"#include "gnunet_peerstore_service.h"#include "gnunet_transport_core_service.h"#include "gnunet_transport_application_service.h"#include "transport-testing-cmds.h"Go to the source code of this file.
Data Structures | |
| struct | StopPeerState |
| Struct to hold information for callbacks. More... | |
Macros | |
| #define | LOG(kind, ...) GNUNET_log (kind, __VA_ARGS__) |
| Generic logging shortcut. | |
Functions | |
| static void | stop_peer_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
| The run method of this cmd will stop all services of a peer which were used to test the transport service. | |
| static void | stop_peer_cleanup (void *cls) |
| The cleanup function of this cmd frees resources the cmd allocated. | |
| static int | stop_peer_traits (void *cls, const void **ret, const char *trait, unsigned int index) |
| Trait function of this cmd does nothing. | |
| struct GNUNET_TESTING_Command | GNUNET_TRANSPORT_cmd_stop_peer (const char *label, const char *start_label) |
| Create command. | |
| #define LOG | ( | kind, | |
| ... | |||
| ) | GNUNET_log (kind, __VA_ARGS__) |
Generic logging shortcut.
Definition at line 38 of file transport_api_cmd_stop_peer.c.
|
static |
The run method of this cmd will stop all services of a peer which were used to test the transport service.
Definition at line 57 of file transport_api_cmd_stop_peer.c.
References GNUNET_TESTING_StartPeerState::ah, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_i2s(), GNUNET_log, GNUNET_OK, GNUNET_PEERSTORE_disconnect(), GNUNET_PEERSTORE_iteration_stop(), GNUNET_SCHEDULER_cancel(), GNUNET_TESTING_interpreter_lookup_command(), GNUNET_TRANSPORT_application_done(), GNUNET_TRANSPORT_core_disconnect(), GNUNET_TRANSPORT_TESTING_get_trait_state(), GNUNET_TESTING_StartPeerState::id, is, LOG, GNUNET_TESTING_StartPeerState::no, GNUNET_TESTING_StartPeerState::peer, GNUNET_TESTING_StartPeerState::ph, GNUNET_TESTING_StartPeerState::pic, GNUNET_TESTING_StartPeerState::rh_task, StopPeerState::start_label, and GNUNET_TESTING_StartPeerState::th.
Referenced by GNUNET_TRANSPORT_cmd_stop_peer().
|
static |
The cleanup function of this cmd frees resources the cmd allocated.
Definition at line 111 of file transport_api_cmd_stop_peer.c.
References GNUNET_free.
Referenced by GNUNET_TRANSPORT_cmd_stop_peer().
|
static |
Trait function of this cmd does nothing.
Definition at line 124 of file transport_api_cmd_stop_peer.c.
References GNUNET_OK.
Referenced by GNUNET_TRANSPORT_cmd_stop_peer().
| 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 141 of file transport_api_cmd_stop_peer.c.
References GNUNET_new, GNUNET_TESTING_command_new, StopPeerState::label, StopPeerState::start_label, stop_peer_cleanup(), stop_peer_run(), and stop_peer_traits().
Referenced by libgnunet_test_transport_plugin_cmd_udp_backchannel_init(), start_testcase(), start_testcase(), start_testcase(), start_testcase(), start_testcase(), start_testcase(), and start_testcase().