GNUnet 0.21.1
GNUNET_TESTING_ConnectPeersState Struct Reference

API for cmds working with core sub system provided by libgnunetcoretesting. More...

#include <gnunet_core_testing_lib.h>

Collaboration diagram for GNUNET_TESTING_ConnectPeersState:
[legend]

Data Fields

struct GNUNET_MQ_MessageHandlerhandlers
 Receive callback. More...
 
struct GNUNET_CONTAINER_MultiShortmapconnected_peers_map
 A map with struct GNUNET_MQ_Handle values for each peer this peer is connected to. More...
 
struct GNUNET_TRANSPORT_ApplicationHandleah
 Handle for transport. More...
 
struct GNUNET_TRANSPORT_CoreHandleth
 Core handle. More...
 
struct GNUNET_TESTING_AsyncContext ac
 Context for our asynchronous completion. More...
 
const struct GNUNET_TESTING_Systemtl_system
 The testing system of this node. More...
 
const char * create_label
 
uint32_t num
 Number globally identifying the node. More...
 
const char * start_peer_label
 Label of the cmd to start a peer. More...
 
struct GNUNET_TESTING_NetjailTopologytopology
 The topology of the test setup. More...
 
struct GNUNET_TESTING_NodeConnectionnode_connections_head
 Connections to other peers. More...
 
struct GNUNET_TESTING_Interpreteris
 
unsigned int con_num
 Number of connections. More...
 
unsigned int additional_connects
 Number of additional connects this cmd will wait for not triggered by this cmd. More...
 
unsigned int con_num_notified
 Number of connections we already have a notification for. More...
 
unsigned int additional_connects_notified
 Number of additional connects this cmd will wait for not triggered by this cmd we already have a notification for. More...
 
unsigned int wait_for_connect
 Flag indicating, whether the command is waiting for peers to connect that are configured to connect. More...
 

Detailed Description

API for cmds working with core sub system provided by libgnunetcoretesting.

Author
t3sserakt Struct to store information needed in callbacks.

Definition at line 37 of file gnunet_core_testing_lib.h.

Field Documentation

◆ handlers

struct GNUNET_MQ_MessageHandler* GNUNET_TESTING_ConnectPeersState::handlers

Receive callback.

Definition at line 42 of file gnunet_core_testing_lib.h.

Referenced by GNUNET_CORE_cmd_connect_peers().

◆ connected_peers_map

struct GNUNET_CONTAINER_MultiShortmap* GNUNET_TESTING_ConnectPeersState::connected_peers_map

A map with struct GNUNET_MQ_Handle values for each peer this peer is connected to.

Definition at line 48 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_cleanup(), and GNUNET_CORE_cmd_connect_peers().

◆ ah

struct GNUNET_TRANSPORT_ApplicationHandle* GNUNET_TESTING_ConnectPeersState::ah

Handle for transport.

Definition at line 53 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run().

◆ th

struct GNUNET_TRANSPORT_CoreHandle* GNUNET_TESTING_ConnectPeersState::th

Core handle.

Definition at line 58 of file gnunet_core_testing_lib.h.

◆ ac

struct GNUNET_TESTING_AsyncContext GNUNET_TESTING_ConnectPeersState::ac

Context for our asynchronous completion.

Definition at line 63 of file gnunet_core_testing_lib.h.

Referenced by GNUNET_CORE_cmd_connect_peers().

◆ tl_system

const struct GNUNET_TESTING_System* GNUNET_TESTING_ConnectPeersState::tl_system

The testing system of this node.

Definition at line 68 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run().

◆ create_label

const char* GNUNET_TESTING_ConnectPeersState::create_label

Definition at line 71 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run(), and GNUNET_CORE_cmd_connect_peers().

◆ num

uint32_t GNUNET_TESTING_ConnectPeersState::num

Number globally identifying the node.

Definition at line 77 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run(), and GNUNET_CORE_cmd_connect_peers().

◆ start_peer_label

const char* GNUNET_TESTING_ConnectPeersState::start_peer_label

Label of the cmd to start a peer.

Definition at line 83 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run(), and GNUNET_CORE_cmd_connect_peers().

◆ topology

struct GNUNET_TESTING_NetjailTopology* GNUNET_TESTING_ConnectPeersState::topology

The topology of the test setup.

Definition at line 88 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run(), and GNUNET_CORE_cmd_connect_peers().

◆ node_connections_head

struct GNUNET_TESTING_NodeConnection* GNUNET_TESTING_ConnectPeersState::node_connections_head

Connections to other peers.

Definition at line 93 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run().

◆ is

struct GNUNET_TESTING_Interpreter* GNUNET_TESTING_ConnectPeersState::is

Definition at line 95 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run().

◆ con_num

unsigned int GNUNET_TESTING_ConnectPeersState::con_num

Number of connections.

Definition at line 100 of file gnunet_core_testing_lib.h.

Referenced by connect_peers_run().

◆ additional_connects

unsigned int GNUNET_TESTING_ConnectPeersState::additional_connects

Number of additional connects this cmd will wait for not triggered by this cmd.

Definition at line 105 of file gnunet_core_testing_lib.h.

Referenced by GNUNET_CORE_cmd_connect_peers().

◆ con_num_notified

unsigned int GNUNET_TESTING_ConnectPeersState::con_num_notified

Number of connections we already have a notification for.

Definition at line 110 of file gnunet_core_testing_lib.h.

◆ additional_connects_notified

unsigned int GNUNET_TESTING_ConnectPeersState::additional_connects_notified

Number of additional connects this cmd will wait for not triggered by this cmd we already have a notification for.

Definition at line 115 of file gnunet_core_testing_lib.h.

◆ wait_for_connect

unsigned int GNUNET_TESTING_ConnectPeersState::wait_for_connect

Flag indicating, whether the command is waiting for peers to connect that are configured to connect.

Definition at line 120 of file gnunet_core_testing_lib.h.

Referenced by GNUNET_CORE_cmd_connect_peers().


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