GNUnet 0.21.1
GNUNET_TESTING_StartPeerState Struct Reference

#include <gnunet_transport_testing_ng_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_Peerpeer
 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...
 
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_Systemtl_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...
 

Detailed Description

Definition at line 51 of file gnunet_transport_testing_ng_lib.h.

Field Documentation

◆ ac

struct GNUNET_TESTING_AsyncContext GNUNET_TESTING_StartPeerState::ac

Context for our asynchronous completion.

Definition at line 56 of file gnunet_transport_testing_ng_lib.h.

Referenced by GNUNET_TRANSPORT_cmd_start_peer(), hello_iter_cb(), and notify_connect().

◆ node_ip

char* GNUNET_TESTING_StartPeerState::node_ip

◆ handlers

struct GNUNET_MQ_MessageHandler* GNUNET_TESTING_StartPeerState::handlers

Receive callback.

Definition at line 66 of file gnunet_transport_testing_ng_lib.h.

Referenced by GNUNET_TRANSPORT_cmd_start_peer(), start_peer_cleanup(), and start_peer_run().

◆ cfgname

char* GNUNET_TESTING_StartPeerState::cfgname

GNUnet configuration file used to start a peer.

Definition at line 71 of file gnunet_transport_testing_ng_lib.h.

Referenced by connect_peers_run(), GNUNET_TESTING_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.

Definition at line 76 of file gnunet_transport_testing_ng_lib.h.

Referenced by connect_peers_run(), start_peer_run(), 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 81 of file gnunet_transport_testing_ng_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 91 of file gnunet_transport_testing_ng_lib.h.

Referenced by start_peer_run(), and stop_peer_run().

◆ ah

struct GNUNET_TRANSPORT_ApplicationHandle* GNUNET_TESTING_StartPeerState::ah

Application handle.

Definition at line 96 of file gnunet_transport_testing_ng_lib.h.

Referenced by 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 101 of file gnunet_transport_testing_ng_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 106 of file gnunet_transport_testing_ng_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 111 of file gnunet_transport_testing_ng_lib.h.

Referenced by hello_iter_cb(), retrieve_hello(), and stop_peer_run().

◆ hello

char* GNUNET_TESTING_StartPeerState::hello

Hello.

Definition at line 116 of file gnunet_transport_testing_ng_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 121 of file gnunet_transport_testing_ng_lib.h.

Referenced by hello_iter_cb(), and start_peer_traits().

◆ system_label

char* GNUNET_TESTING_StartPeerState::system_label

The label of the command which was started by calling GNUNET_TESTING_cmd_system_create.

Definition at line 126 of file gnunet_transport_testing_ng_lib.h.

Referenced by GNUNET_TESTING_cmd_start_peer(), GNUNET_TRANSPORT_cmd_start_peer(), start_peer_cleanup(), and start_peer_run().

◆ no

unsigned int GNUNET_TESTING_StartPeerState::no

◆ 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 137 of file gnunet_transport_testing_ng_lib.h.

Referenced by GNUNET_TESTING_cmd_start_peer(), 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 142 of file gnunet_transport_testing_ng_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 147 of file gnunet_transport_testing_ng_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 152 of file gnunet_transport_testing_ng_lib.h.

Referenced by GNUNET_TESTING_cmd_start_peer(), GNUNET_TRANSPORT_cmd_start_peer(), and start_peer_run().


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