GNUnet  0.11.x
Data Fields
BenchmarkPeer Struct Reference

Information we track for a peer in the testbed. More...

#include </home/handbook/gnunet/src/ats-tests/ats-testing.h>

Collaboration diagram for BenchmarkPeer:
[legend]

Data Fields

struct GNUNET_TESTBED_Peerpeer
 Handle with testbed. More...
 
int no
 Unique identifier. More...
 
int master
 Is this peer a measter: GNUNET_YES/GNUNET_NO. More...
 
struct GNUNET_PeerIdentity id
 Peer ID. More...
 
struct GNUNET_TESTBED_Operationpeer_id_op
 Testbed operation to get peer information. More...
 
struct GNUNET_TESTBED_Operationats_perf_op
 Testbed operation to connect to ATS performance service. More...
 
struct GNUNET_TESTBED_Operationcomm_op
 Testbed operation to connect to core. More...
 
struct GNUNET_ATS_PerformanceHandleats_perf_handle
 ATS performance handle. More...
 
struct TestbedConnectOperationcore_connect_ops
 Masters only: Testbed connect operations to connect masters to slaves. More...
 
struct GNUNET_CORE_Handlech
 Core handle. More...
 
struct GNUNET_TRANSPORT_CoreHandleth
 Transport handle. More...
 
struct BenchmarkPeerpref_partner
 Masters only: Peer to set ATS preferences for. More...
 
struct GNUNET_SCHEDULER_Taskats_task
 Masters only Progress task. More...
 
double pref_value
 Masters only Progress task. More...
 
struct BenchmarkPartnerpartners
 Array of partners with num_slaves entries (if master) or num_master entries (if slave) More...
 
int num_partners
 Number of partners. More...
 
int core_connections
 Number of core connections. More...
 
int core_slave_connections
 Masters only: Number of connections to slave peers. More...
 
unsigned int total_messages_sent
 Total number of messages this peer has sent. More...
 
unsigned int total_bytes_sent
 Total number of bytes this peer has sent. More...
 
unsigned int total_messages_received
 Total number of messages this peer has received. More...
 
unsigned int total_bytes_received
 Total number of bytes this peer has received. More...
 

Detailed Description

Information we track for a peer in the testbed.

Definition at line 111 of file ats-testing.h.

Field Documentation

◆ peer

struct GNUNET_TESTBED_Peer* BenchmarkPeer::peer

Handle with testbed.

Definition at line 116 of file ats-testing.h.

Referenced by do_comm_connect(), do_connect_ats(), do_connect_peers(), and main_run().

◆ no

int BenchmarkPeer::no

◆ master

int BenchmarkPeer::master

Is this peer a measter: GNUNET_YES/GNUNET_NO.

Definition at line 126 of file ats-testing.h.

Referenced by ats_performance_info_cb(), comm_connect_cb(), comm_disconnect_cb(), main_run(), and peerinformation_cb().

◆ id

struct GNUNET_PeerIdentity BenchmarkPeer::id

◆ peer_id_op

struct GNUNET_TESTBED_Operation* BenchmarkPeer::peer_id_op

Testbed operation to get peer information.

Definition at line 136 of file ats-testing.h.

Referenced by do_shutdown(), main_run(), and peerinformation_cb().

◆ ats_perf_op

struct GNUNET_TESTBED_Operation* BenchmarkPeer::ats_perf_op

Testbed operation to connect to ATS performance service.

Definition at line 141 of file ats-testing.h.

Referenced by do_connect_ats(), and do_shutdown().

◆ comm_op

struct GNUNET_TESTBED_Operation* BenchmarkPeer::comm_op

Testbed operation to connect to core.

Definition at line 146 of file ats-testing.h.

Referenced by do_comm_connect(), and do_shutdown().

◆ ats_perf_handle

struct GNUNET_ATS_PerformanceHandle* BenchmarkPeer::ats_perf_handle

ATS performance handle.

Definition at line 151 of file ats-testing.h.

Referenced by ats_perf_connect_adapter(), ats_perf_disconnect_adapter(), and set_pref_task().

◆ core_connect_ops

struct TestbedConnectOperation* BenchmarkPeer::core_connect_ops

Masters only: Testbed connect operations to connect masters to slaves.

Definition at line 157 of file ats-testing.h.

Referenced by connect_completion_callback(), do_connect_peers(), and do_shutdown().

◆ ch

struct GNUNET_CORE_Handle* BenchmarkPeer::ch

Core handle.

Definition at line 162 of file ats-testing.h.

Referenced by core_connect_adapter(), and core_disconnect_adapter().

◆ th

struct GNUNET_TRANSPORT_CoreHandle* BenchmarkPeer::th

Transport handle.

Definition at line 167 of file ats-testing.h.

Referenced by transport_connect_adapter(), and transport_disconnect_adapter().

◆ pref_partner

struct BenchmarkPeer* BenchmarkPeer::pref_partner

Masters only: Peer to set ATS preferences for.

Definition at line 173 of file ats-testing.h.

Referenced by evaluate(), and main_run().

◆ ats_task

struct GNUNET_SCHEDULER_Task* BenchmarkPeer::ats_task

Masters only Progress task.

Definition at line 179 of file ats-testing.h.

Referenced by do_shutdown().

◆ pref_value

double BenchmarkPeer::pref_value

Masters only Progress task.

Definition at line 185 of file ats-testing.h.

Referenced by main_run().

◆ partners

struct BenchmarkPartner* BenchmarkPeer::partners

Array of partners with num_slaves entries (if master) or num_master entries (if slave)

Definition at line 191 of file ats-testing.h.

Referenced by do_shutdown(), evaluate(), find_partner(), GNUNET_ATS_TEST_get_partner(), GNUNET_ATS_TEST_logging_now(), main_run(), write_rtt_gnuplot_script(), and write_throughput_gnuplot_script().

◆ num_partners

int BenchmarkPeer::num_partners

◆ core_connections

int BenchmarkPeer::core_connections

Number of core connections.

Definition at line 201 of file ats-testing.h.

Referenced by comm_connect_cb(), and comm_disconnect_cb().

◆ core_slave_connections

int BenchmarkPeer::core_slave_connections

Masters only: Number of connections to slave peers.

Definition at line 207 of file ats-testing.h.

Referenced by comm_connect_cb().

◆ total_messages_sent

unsigned int BenchmarkPeer::total_messages_sent

Total number of messages this peer has sent.

Definition at line 212 of file ats-testing.h.

Referenced by GNUNET_ATS_TEST_logging_now(), update_ping_data(), and update_pong_data().

◆ total_bytes_sent

unsigned int BenchmarkPeer::total_bytes_sent

Total number of bytes this peer has sent.

Definition at line 217 of file ats-testing.h.

Referenced by evaluate(), GNUNET_ATS_TEST_logging_now(), update_ping_data(), and update_pong_data().

◆ total_messages_received

unsigned int BenchmarkPeer::total_messages_received

Total number of messages this peer has received.

Definition at line 222 of file ats-testing.h.

Referenced by GNUNET_ATS_TEST_logging_now(), GNUNET_ATS_TEST_traffic_handle_ping(), and GNUNET_ATS_TEST_traffic_handle_pong().

◆ total_bytes_received

unsigned int BenchmarkPeer::total_bytes_received

Total number of bytes this peer has received.

Definition at line 227 of file ats-testing.h.

Referenced by evaluate(), GNUNET_ATS_TEST_logging_now(), GNUNET_ATS_TEST_traffic_handle_ping(), and GNUNET_ATS_TEST_traffic_handle_pong().


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