#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_testing_lib.h"
#include "gnunet_core_service.h"
#include "gnunet_testing_core_lib.h"
Go to the source code of this file.
Data Structures | |
struct | ChannelCount |
struct | RecvState |
Macros | |
#define | LOG(kind, ...) GNUNET_log_from (kind, "testing-core-recv", __VA_ARGS__) |
Generic logging shortcut. More... | |
Functions | |
static void | handle_msg_test (void *cls, struct GNUNET_TESTING_CORE_Channel *channel, const struct GNUNET_TESTING_CORE_Message *msg) |
static void | do_finish_cmd_delayed (void *cls) |
static void | remove_recv_handler (struct GNUNET_TESTING_CORE_ConnectState *connect_state) |
static void | exec_recv_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
static void | exec_recv_cleanup (void *cls) |
const struct GNUNET_TESTING_Command | GNUNET_TESTING_CORE_cmd_recv (const char *label, uint64_t num_messages) |
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log_from (kind, "testing-core-recv", __VA_ARGS__) |
Generic logging shortcut.
Definition at line 37 of file testing_core_cmd_recv.c.
|
static |
Definition at line 116 of file testing_core_cmd_recv.c.
References ChannelCount::channel, RecvState::channel_count, RecvState::connect_state, do_finish_cmd_delayed(), GNUNET_array_grow, GNUNET_assert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_INFO, GNUNET_NO, GNUNET_ntohll(), GNUNET_SCHEDULER_add_delayed(), GNUNET_TIME_relative_multiply(), GNUNET_TIME_UNIT_MILLISECONDS, GNUNET_YES, LOG, msg, RecvState::num_channels, ChannelCount::num_messages_received, RecvState::num_messages_target, remove_recv_handler(), ret, and ChannelCount::rs.
Referenced by exec_recv_run(), and remove_recv_handler().
|
static |
Definition at line 69 of file testing_core_cmd_recv.c.
References RecvState::ac, GNUNET_ERROR_TYPE_DEBUG, GNUNET_free, GNUNET_TESTING_async_finish(), and LOG.
Referenced by handle_msg_test().
|
static |
Definition at line 80 of file testing_core_cmd_recv.c.
References RecvState::connect_state, GNUNET_ERROR_TYPE_DEBUG, handle_msg_test(), LOG, GNUNET_TESTING_CORE_ConnectState::recv_handlers, and GNUNET_TESTING_CORE_ConnectState::recv_handlers_len.
Referenced by handle_msg_test().
|
static |
Definition at line 217 of file testing_core_cmd_recv.c.
References RecvState::connect_state, GNUNET_array_append, GNUNET_assert, GNUNET_CORE_TESTING_get_trait_connect(), GNUNET_OK, GNUNET_TESTING_interpreter_lookup_command(), handle_msg_test(), is, GNUNET_TESTING_CORE_ConnectState::recv_handlers, and GNUNET_TESTING_CORE_ConnectState::recv_handlers_len.
Referenced by GNUNET_TESTING_CORE_cmd_recv().
|
static |
Definition at line 240 of file testing_core_cmd_recv.c.
Referenced by GNUNET_TESTING_CORE_cmd_recv().
const struct GNUNET_TESTING_Command GNUNET_TESTING_CORE_cmd_recv | ( | const char * | label, |
uint64_t | num_messages | ||
) |
Definition at line 251 of file testing_core_cmd_recv.c.
References RecvState::ac, RecvState::channel_count, exec_recv_cleanup(), exec_recv_run(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_new, GNUNET_new_array, GNUNET_TESTING_command_new_ac(), LOG, RecvState::num_channels, and RecvState::num_messages_target.