GNUnet 0.22.2
GNUNET_TESTING_StartPeerState Struct Reference

Handle for a peer controlled via ARM. More...

#include <gnunet_testing_transport_lib.h>

Collaboration diagram for GNUNET_TESTING_StartPeerState:
[legend]

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_MessageHandlerhandlers
 Receive callback. More...
 
char * cfgname
 GNUnet configuration file used to start a peer. More...
 
struct GNUNET_CONFIGURATION_Handlecfg
 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_CoreHandleth
 Peer's transport service handle. More...
 
struct GNUNET_TRANSPORT_ApplicationHandleah
 Application handle. More...
 
struct GNUNET_PEERSTORE_Handleph
 Peer's PEERSTORE Handle. More...
 
struct GNUNET_SCHEDULER_Taskrh_task
 Hello get task. More...
 
struct GNUNET_PEERSTORE_IterateContextpic
 Peer's transport get hello handle to retrieve peer's HELLO message. More...
 
struct GNUNET_SCHEDULER_Tasklog_task
 Task to search for log entry indicating the communicators started. More...
 
struct GNUNET_SCHEDULER_Taskrequest_task
 Task to start the request for the list of services. More...
 
struct GNUNET_ARM_Operationop
 Arm operation to get a list of the services, to check if all started. More...
 
struct GNUNET_ARM_Handleh
 Handle for the arm service. More...
 
FILE * stream
 Stream to read log file lines. More...
 
struct GNUNET_DISK_FileHandlefh
 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_MultiShortmapconnected_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_Interpreteris
 Our interpreter. More...
 
struct GNUNET_TESTBED_Systemsystem
 The TESTBED system associated with this peer. More...
 
struct GNUNET_ARM_Handleah
 The handle to the peer's ARM service. More...
 
struct GNUNET_OS_Processarm
 Handle to the ARM process information. More...
 

Detailed Description

Handle for a peer controlled via ARM.

Definition at line 45 of file gnunet_testing_transport_lib.h.

Field Documentation

◆ ac

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().

◆ node_ip

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().

◆ handlers

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().

◆ cfgname [1/2]

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().

◆ cfg

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().

◆ peer

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().

◆ id

struct GNUNET_PeerIdentity GNUNET_TESTING_StartPeerState::id

◆ th

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().

◆ ah [1/2]

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().

◆ ph

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().

◆ rh_task

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().

◆ pic

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().

◆ log_task

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.

◆ request_task

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.

◆ op

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.

◆ 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.

◆ stream

FILE* GNUNET_TESTING_StartPeerState::stream

Stream to read log file lines.

Definition at line 130 of file gnunet_testing_transport_lib.h.

◆ fh

struct GNUNET_DISK_FileHandle* GNUNET_TESTING_StartPeerState::fh

File handle for log file.

Definition at line 135 of file gnunet_testing_transport_lib.h.

◆ not_all_started

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.

◆ coms_started

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.

◆ num_coms_started

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.

◆ hello

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().

◆ hello_size

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().

◆ system_label [1/2]

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().

◆ no

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().

◆ connected_peers_map

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().

◆ tl_system

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().

◆ notify_connect

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().

◆ broadcast

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().

◆ system_label [2/2]

const char* GNUNET_TESTING_StartPeerState::system_label

Definition at line 40 of file testing_arm_cmd_start_peer.c.

◆ cfgname [2/2]

const char* GNUNET_TESTING_StartPeerState::cfgname

Definition at line 42 of file testing_arm_cmd_start_peer.c.

◆ is

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().

◆ system

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().

◆ ah [2/2]

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.

◆ arm

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().


The documentation for this struct was generated from the following files: