![]() |
GNUnet
0.11.x
|
Information we track for a peer in the testbed. More...
#include </home/handbook/gnunet/src/ats-tests/ats-testing.h>
Data Fields | |
struct GNUNET_TESTBED_Peer * | peer |
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_Operation * | peer_id_op |
Testbed operation to get peer information. More... | |
struct GNUNET_TESTBED_Operation * | ats_perf_op |
Testbed operation to connect to ATS performance service. More... | |
struct GNUNET_TESTBED_Operation * | comm_op |
Testbed operation to connect to core. More... | |
struct GNUNET_ATS_PerformanceHandle * | ats_perf_handle |
ATS performance handle. More... | |
struct TestbedConnectOperation * | core_connect_ops |
Masters only: Testbed connect operations to connect masters to slaves. More... | |
struct GNUNET_CORE_Handle * | ch |
Core handle. More... | |
struct GNUNET_TRANSPORT_CoreHandle * | th |
Transport handle. More... | |
struct BenchmarkPeer * | pref_partner |
Masters only: Peer to set ATS preferences for. More... | |
struct GNUNET_SCHEDULER_Task * | ats_task |
Masters only Progress task. More... | |
double | pref_value |
Masters only Progress task. More... | |
struct BenchmarkPartner * | partners |
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... | |
Information we track for a peer in the testbed.
Definition at line 111 of file ats-testing.h.
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().
int BenchmarkPeer::no |
Unique identifier.
Definition at line 121 of file ats-testing.h.
Referenced by ats_performance_info_cb(), comm_connect_cb(), comm_schedule_send(), connect_completion_callback(), do_connect_peers(), evaluate(), GNUNET_ATS_TEST_generate_preferences_start(), GNUNET_ATS_TEST_generate_traffic_start(), GNUNET_ATS_TEST_logging_now(), GNUNET_ATS_TEST_logging_write_to_file(), GNUNET_ATS_TEST_traffic_handle_ping(), GNUNET_ATS_TEST_traffic_handle_pong(), main_run(), peerinformation_cb(), set_pref_task(), write_bw_gnuplot_script(), write_rtt_gnuplot_script(), and write_throughput_gnuplot_script().
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().
struct GNUNET_PeerIdentity BenchmarkPeer::id |
Peer ID.
Definition at line 131 of file ats-testing.h.
Referenced by ats_performance_info_cb(), comm_connect_cb(), comm_disconnect_cb(), find_partner(), find_peer(), GNUNET_ATS_TEST_generate_preferences_start(), GNUNET_ATS_TEST_generate_traffic_start(), peerinformation_cb(), set_pref_task(), and transport_connect_adapter().
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().
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().
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().
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().
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().
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().
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().
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().
struct GNUNET_SCHEDULER_Task* BenchmarkPeer::ats_task |
Masters only Progress task.
Definition at line 179 of file ats-testing.h.
Referenced by do_shutdown().
double BenchmarkPeer::pref_value |
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().
int BenchmarkPeer::num_partners |
Number of partners.
Definition at line 196 of file ats-testing.h.
Referenced by do_shutdown(), find_partner(), GNUNET_ATS_TEST_logging_now(), GNUNET_ATS_TEST_logging_write_to_file(), and main_run().
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().
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().
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().
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().
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().
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().