Handle for a peer controlled via ARM. More...
#include <gnunet_testing_transport_lib.h>
Data Fields | |
struct GNUNET_TESTING_AsyncContext | ac |
Context for our asynchronous completion. More... | |
char * | node_ip |
The ip of a node. More... | |
struct GNUNET_MQ_MessageHandler * | handlers |
Receive callback. More... | |
char * | cfgname |
GNUnet configuration file used to start a peer. More... | |
struct GNUNET_CONFIGURATION_Handle * | cfg |
Peer's configuration. More... | |
struct GNUNET_TESTING_Peer * | peer |
struct GNUNET_TESTING_Peer returned by GNUNET_TESTING_peer_configure. More... | |
struct GNUNET_PeerIdentity | id |
Peer identity. More... | |
struct GNUNET_TRANSPORT_CoreHandle * | th |
Peer's transport service handle. More... | |
struct GNUNET_TRANSPORT_ApplicationHandle * | ah |
Application handle. More... | |
struct GNUNET_PEERSTORE_Handle * | ph |
Peer's PEERSTORE Handle. More... | |
struct GNUNET_SCHEDULER_Task * | rh_task |
Hello get task. More... | |
struct GNUNET_PEERSTORE_IterateContext * | pic |
Peer's transport get hello handle to retrieve peer's HELLO message. More... | |
struct GNUNET_SCHEDULER_Task * | log_task |
Task to search for log entry indicating the communicators started. More... | |
struct GNUNET_SCHEDULER_Task * | request_task |
Task to start the request for the list of services. More... | |
struct GNUNET_ARM_Operation * | op |
Arm operation to get a list of the services, to check if all started. More... | |
struct GNUNET_ARM_Handle * | h |
Handle for the arm service. More... | |
FILE * | stream |
Stream to read log file lines. More... | |
struct GNUNET_DISK_FileHandle * | fh |
File handle for log file. More... | |
enum GNUNET_GenericReturnValue | not_all_started |
Flag indicating, if there are services not started completely. More... | |
enum GNUNET_GenericReturnValue | coms_started |
Flag indicating if all (udp and tcp) communicators connected to transport service. More... | |
unsigned int | num_coms_started |
Number of communicators connecteds with transport service. More... | |
char * | hello |
Hello. More... | |
size_t | hello_size |
Hello size. More... | |
char * | system_label |
The label of the command which was started by calling GNUNET_TESTING_cmd_system_create. More... | |
unsigned int | no |
An unique number to identify the peer. More... | |
struct GNUNET_CONTAINER_MultiShortmap * | connected_peers_map |
A map with struct GNUNET_MQ_Handle values for each peer this peer is connected to. More... | |
const struct GNUNET_TESTING_System * | tl_system |
Test setup for this peer. More... | |
GNUNET_TESTING_notify_connect_cb | notify_connect |
Callback which is called on neighbour connect events. More... | |
enum GNUNET_GenericReturnValue | broadcast |
Flag indicating, if udp broadcast should be switched on. More... | |
const char * | system_label |
const char * | cfgname |
struct GNUNET_TESTING_Interpreter * | is |
Our interpreter. More... | |
struct GNUNET_TESTBED_System * | system |
The TESTBED system associated with this peer. More... | |
struct GNUNET_ARM_Handle * | ah |
The handle to the peer's ARM service. More... | |
struct GNUNET_OS_Process * | arm |
Handle to the ARM process information. More... | |
Handle for a peer controlled via ARM.
Definition at line 45 of file gnunet_testing_transport_lib.h.
struct GNUNET_TESTING_AsyncContext GNUNET_TESTING_StartPeerState::ac |
Context for our asynchronous completion.
Asynchronous start context.
Definition at line 50 of file gnunet_testing_transport_lib.h.
Referenced by conn_status(), GNUNET_TESTING_ARM_cmd_start_peer(), GNUNET_TRANSPORT_cmd_start_peer(), hello_iter_cb(), and notify_connect().
char* GNUNET_TESTING_StartPeerState::node_ip |
The ip of a node.
Definition at line 55 of file gnunet_testing_transport_lib.h.
Referenced by GNUNET_TRANSPORT_cmd_start_peer(), start_peer_cleanup(), and start_peer_run().
struct GNUNET_MQ_MessageHandler* GNUNET_TESTING_StartPeerState::handlers |
Receive callback.
Definition at line 60 of file gnunet_testing_transport_lib.h.
Referenced by GNUNET_TRANSPORT_cmd_start_peer(), start_peer_cleanup(), and start_peer_run().
char* GNUNET_TESTING_StartPeerState::cfgname |
GNUnet configuration file used to start a peer.
Definition at line 65 of file gnunet_testing_transport_lib.h.
Referenced by connect_peers_run(), GNUNET_TESTING_ARM_cmd_start_peer(), GNUNET_TRANSPORT_cmd_start_peer(), start_peer_cleanup(), and start_peer_run().
struct GNUNET_CONFIGURATION_Handle * GNUNET_TESTING_StartPeerState::cfg |
Peer's configuration.
The config of the peer.
Definition at line 70 of file gnunet_testing_transport_lib.h.
Referenced by connect_peers_run(), start_peer_cleanup(), start_peer_run(), start_peer_traits(), and start_service_run().
struct GNUNET_TESTING_Peer* GNUNET_TESTING_StartPeerState::peer |
struct GNUNET_TESTING_Peer returned by GNUNET_TESTING_peer_configure.
Definition at line 75 of file gnunet_testing_transport_lib.h.
Referenced by notify_disconnect(), start_peer_run(), and stop_peer_run().
struct GNUNET_PeerIdentity GNUNET_TESTING_StartPeerState::id |
Peer identity.
Definition at line 80 of file gnunet_testing_transport_lib.h.
Referenced by notify_connect(), notify_disconnect(), retrieve_hello(), start_peer_run(), start_peer_traits(), and stop_peer_run().
struct GNUNET_TRANSPORT_CoreHandle* GNUNET_TESTING_StartPeerState::th |
Peer's transport service handle.
Definition at line 85 of file gnunet_testing_transport_lib.h.
Referenced by start_peer_run(), and stop_peer_run().
struct GNUNET_TRANSPORT_ApplicationHandle* GNUNET_TESTING_StartPeerState::ah |
Application handle.
Definition at line 90 of file gnunet_testing_transport_lib.h.
Referenced by start_peer_cleanup(), start_peer_run(), start_peer_traits(), and stop_peer_run().
struct GNUNET_PEERSTORE_Handle* GNUNET_TESTING_StartPeerState::ph |
Peer's PEERSTORE Handle.
Definition at line 95 of file gnunet_testing_transport_lib.h.
Referenced by retrieve_hello(), start_peer_run(), and stop_peer_run().
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_StartPeerState::rh_task |
Hello get task.
Definition at line 100 of file gnunet_testing_transport_lib.h.
Referenced by hello_iter_cb(), retrieve_hello(), start_peer_run(), and stop_peer_run().
struct GNUNET_PEERSTORE_IterateContext* GNUNET_TESTING_StartPeerState::pic |
Peer's transport get hello handle to retrieve peer's HELLO message.
Definition at line 105 of file gnunet_testing_transport_lib.h.
Referenced by hello_iter_cb(), retrieve_hello(), and stop_peer_run().
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_StartPeerState::log_task |
Task to search for log entry indicating the communicators started.
Definition at line 110 of file gnunet_testing_transport_lib.h.
struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_StartPeerState::request_task |
Task to start the request for the list of services.
Definition at line 115 of file gnunet_testing_transport_lib.h.
struct GNUNET_ARM_Operation* GNUNET_TESTING_StartPeerState::op |
Arm operation to get a list of the services, to check if all started.
Definition at line 120 of file gnunet_testing_transport_lib.h.
struct GNUNET_ARM_Handle* GNUNET_TESTING_StartPeerState::h |
Handle for the arm service.
Definition at line 125 of file gnunet_testing_transport_lib.h.
FILE* GNUNET_TESTING_StartPeerState::stream |
Stream to read log file lines.
Definition at line 130 of file gnunet_testing_transport_lib.h.
struct GNUNET_DISK_FileHandle* GNUNET_TESTING_StartPeerState::fh |
File handle for log file.
Definition at line 135 of file gnunet_testing_transport_lib.h.
enum GNUNET_GenericReturnValue GNUNET_TESTING_StartPeerState::not_all_started |
Flag indicating, if there are services not started completely.
Definition at line 140 of file gnunet_testing_transport_lib.h.
enum GNUNET_GenericReturnValue GNUNET_TESTING_StartPeerState::coms_started |
Flag indicating if all (udp and tcp) communicators connected to transport service.
Definition at line 145 of file gnunet_testing_transport_lib.h.
unsigned int GNUNET_TESTING_StartPeerState::num_coms_started |
Number of communicators connecteds with transport service.
Definition at line 150 of file gnunet_testing_transport_lib.h.
char* GNUNET_TESTING_StartPeerState::hello |
Hello.
Definition at line 155 of file gnunet_testing_transport_lib.h.
Referenced by hello_iter_cb(), start_peer_cleanup(), and start_peer_traits().
size_t GNUNET_TESTING_StartPeerState::hello_size |
Hello size.
Definition at line 160 of file gnunet_testing_transport_lib.h.
Referenced by hello_iter_cb(), and start_peer_traits().
char* GNUNET_TESTING_StartPeerState::system_label |
The label of the command which was started by calling GNUNET_TESTING_cmd_system_create.
Definition at line 165 of file gnunet_testing_transport_lib.h.
Referenced by GNUNET_TESTING_ARM_cmd_start_peer(), GNUNET_TRANSPORT_cmd_start_peer(), start_peer_cleanup(), and start_peer_run().
unsigned int GNUNET_TESTING_StartPeerState::no |
An unique number to identify the peer.
Definition at line 170 of file gnunet_testing_transport_lib.h.
Referenced by GNUNET_TRANSPORT_cmd_start_peer(), notify_connect(), notify_disconnect(), start_peer_run(), and stop_peer_run().
struct GNUNET_CONTAINER_MultiShortmap* GNUNET_TESTING_StartPeerState::connected_peers_map |
A map with struct GNUNET_MQ_Handle values for each peer this peer is connected to.
Definition at line 176 of file gnunet_testing_transport_lib.h.
Referenced by GNUNET_TRANSPORT_cmd_start_peer(), notify_connect(), start_peer_cleanup(), and start_peer_traits().
const struct GNUNET_TESTING_System* GNUNET_TESTING_StartPeerState::tl_system |
Test setup for this peer.
Definition at line 181 of file gnunet_testing_transport_lib.h.
Referenced by start_peer_run().
GNUNET_TESTING_notify_connect_cb GNUNET_TESTING_StartPeerState::notify_connect |
Callback which is called on neighbour connect events.
Definition at line 186 of file gnunet_testing_transport_lib.h.
Referenced by GNUNET_TRANSPORT_cmd_start_peer(), and notify_connect().
enum GNUNET_GenericReturnValue GNUNET_TESTING_StartPeerState::broadcast |
Flag indicating, if udp broadcast should be switched on.
Definition at line 191 of file gnunet_testing_transport_lib.h.
Referenced by GNUNET_TRANSPORT_cmd_start_peer(), and start_peer_run().
const char* GNUNET_TESTING_StartPeerState::system_label |
Definition at line 40 of file testing_arm_cmd_start_peer.c.
const char* GNUNET_TESTING_StartPeerState::cfgname |
Definition at line 42 of file testing_arm_cmd_start_peer.c.
struct GNUNET_TESTING_Interpreter* GNUNET_TESTING_StartPeerState::is |
Our interpreter.
Definition at line 47 of file testing_arm_cmd_start_peer.c.
Referenced by start_peer_run().
struct GNUNET_TESTBED_System* GNUNET_TESTING_StartPeerState::system |
The TESTBED system associated with this peer.
Definition at line 57 of file testing_arm_cmd_start_peer.c.
Referenced by start_peer_run().
struct GNUNET_ARM_Handle* GNUNET_TESTING_StartPeerState::ah |
The handle to the peer's ARM service.
Definition at line 62 of file testing_arm_cmd_start_peer.c.
struct GNUNET_OS_Process* GNUNET_TESTING_StartPeerState::arm |
Handle to the ARM process information.
Definition at line 67 of file testing_arm_cmd_start_peer.c.
Referenced by start_peer_cleanup(), start_peer_run(), and start_peer_traits().