GNUnet  0.11.x
Data Fields
RPSPeer Struct Reference

Information we track for each peer. More...

Collaboration diagram for RPSPeer:
[legend]

Data Fields

unsigned int index
 Index of the peer. More...
 
struct GNUNET_TESTBED_Operationop
 Handle for RPS connect operation. More...
 
struct GNUNET_RPS_Handlerps_handle
 Handle to RPS service. More...
 
struct GNUNET_PeerIdentitypeer_id
 ID of the peer. More...
 
int online
 A request handle to check for an request. More...
 
unsigned int num_ids_to_request
 Number of Peer IDs to request during the whole test. More...
 
struct PendingRequestpending_req_head
 Pending requests DLL. More...
 
struct PendingRequestpending_req_tail
 
unsigned int num_pending_reqs
 Number of pending requests. More...
 
struct PendingReplypending_rep_head
 Pending replies DLL. More...
 
struct PendingReplypending_rep_tail
 
unsigned int num_pending_reps
 Number of pending replies. More...
 
unsigned int num_recv_ids
 Number of received PeerIDs. More...
 
const struct OpListEntryentry_op_manage
 Pending operation on that peer. More...
 
struct GNUNET_TESTBED_Operationstat_op
 Testbed operation to connect to statistics service. More...
 
struct GNUNET_STATISTICS_Handlestats_h
 Handle to the statistics service. More...
 
uint32_t stat_collected_flags
 flags to indicate which statistics values have been already collected from the statistics service. More...
 
const char * file_name_stats
 File name of the file the stats are finally written to. More...
 
const char * file_name_probs
 File name of the file the stats are finally written to. More...
 
const char * file_name_probs_hist
 File name of the file the stats are finally written to. More...
 
struct GNUNET_PeerIdentitycur_view
 The current view. More...
 
uint32_t cur_view_count
 Number of peers in the cur_view. More...
 
uint32_t count_in_views
 Number of occurrences in other peer's view. More...
 
uint64_t stats [STAT_TYPE_MAX]
 statistics values More...
 
struct GNUNET_STATISTICS_GetHandleh_stat_get [STAT_TYPE_MAX]
 Handle for the statistics get request. More...
 
double * eval_probs_cache
 Keep the probabilities in cache for computing the probabilities with respect to history. More...
 

Detailed Description

Information we track for each peer.

Definition at line 482 of file gnunet-rps-profiler.c.

Field Documentation

◆ index

unsigned int RPSPeer::index

◆ op

struct GNUNET_TESTBED_Operation* RPSPeer::op

Handle for RPS connect operation.

Definition at line 492 of file gnunet-rps-profiler.c.

Referenced by clean_peer(), post_test_op(), rps_connect_complete_cb(), and test_run().

◆ rps_handle

struct GNUNET_RPS_Handle* RPSPeer::rps_handle

Handle to RPS service.

Definition at line 497 of file gnunet-rps-profiler.c.

Referenced by churn_cb(), request_peers(), rps_connect_complete_cb(), rps_disconnect_adapter(), and seed_peers().

◆ peer_id

struct GNUNET_PeerIdentity* RPSPeer::peer_id

◆ online

int RPSPeer::online

A request handle to check for an request.

Peer on- or offline?

Definition at line 512 of file gnunet-rps-profiler.c.

Referenced by churn_cb(), and rps_connect_complete_cb().

◆ num_ids_to_request

unsigned int RPSPeer::num_ids_to_request

Number of Peer IDs to request during the whole test.

Definition at line 517 of file gnunet-rps-profiler.c.

Referenced by evaluate(), mal_init_peer(), profiler_cb(), profiler_init_peer(), and schedule_missing_requests().

◆ pending_req_head

struct PendingRequest* RPSPeer::pending_req_head

◆ pending_req_tail

struct PendingRequest* RPSPeer::pending_req_tail

◆ num_pending_reqs

unsigned int RPSPeer::num_pending_reqs

Number of pending requests.

Definition at line 528 of file gnunet-rps-profiler.c.

Referenced by cancel_pending_req(), cancel_pending_req_rep(), request_peers(), and schedule_missing_requests().

◆ pending_rep_head

struct PendingReply* RPSPeer::pending_rep_head

◆ pending_rep_tail

struct PendingReply* RPSPeer::pending_rep_tail

Definition at line 534 of file gnunet-rps-profiler.c.

Referenced by cancel_request(), default_reply_handle(), and request_peers().

◆ num_pending_reps

unsigned int RPSPeer::num_pending_reps

Number of pending replies.

Definition at line 539 of file gnunet-rps-profiler.c.

Referenced by cancel_pending_req_rep(), cancel_request(), default_reply_handle(), request_peers(), and schedule_missing_requests().

◆ num_recv_ids

unsigned int RPSPeer::num_recv_ids

Number of received PeerIDs.

Definition at line 544 of file gnunet-rps-profiler.c.

Referenced by default_reply_handle(), and evaluate().

◆ entry_op_manage

const struct OpListEntry* RPSPeer::entry_op_manage

Pending operation on that peer.

Definition at line 549 of file gnunet-rps-profiler.c.

Referenced by churn_cb(), and manage_service_wrapper().

◆ stat_op

struct GNUNET_TESTBED_Operation* RPSPeer::stat_op

Testbed operation to connect to statistics service.

Definition at line 554 of file gnunet-rps-profiler.c.

Referenced by post_test_shutdown_ready_cb(), and test_run().

◆ stats_h

struct GNUNET_STATISTICS_Handle* RPSPeer::stats_h

Handle to the statistics service.

Definition at line 559 of file gnunet-rps-profiler.c.

Referenced by post_profiler(), stat_connect_adapter(), and stat_disconnect_adapter().

◆ stat_collected_flags

uint32_t RPSPeer::stat_collected_flags

flags to indicate which statistics values have been already collected from the statistics service.

Used to check whether we are able to shutdown.

Definition at line 566 of file gnunet-rps-profiler.c.

Referenced by check_statistics_collect_completed_single_peer(), and post_test_shutdown_ready_cb().

◆ file_name_stats

const char* RPSPeer::file_name_stats

File name of the file the stats are finally written to.

Definition at line 571 of file gnunet-rps-profiler.c.

Referenced by post_profiler(), and stat_iterator().

◆ file_name_probs

const char* RPSPeer::file_name_probs

File name of the file the stats are finally written to.

Definition at line 576 of file gnunet-rps-profiler.c.

Referenced by pre_profiler().

◆ file_name_probs_hist

const char* RPSPeer::file_name_probs_hist

File name of the file the stats are finally written to.

Definition at line 581 of file gnunet-rps-profiler.c.

Referenced by pre_profiler().

◆ cur_view

struct GNUNET_PeerIdentity* RPSPeer::cur_view

The current view.

Definition at line 586 of file gnunet-rps-profiler.c.

Referenced by main(), test_run(), and view_update_cb().

◆ cur_view_count

uint32_t RPSPeer::cur_view_count

◆ count_in_views

uint32_t RPSPeer::count_in_views

Number of occurrences in other peer's view.

Definition at line 596 of file gnunet-rps-profiler.c.

Referenced by count_peer_in_views_2().

◆ stats

uint64_t RPSPeer::stats[STAT_TYPE_MAX]

statistics values

Definition at line 601 of file gnunet-rps-profiler.c.

Referenced by stat_iterator(), and write_final_stats().

◆ h_stat_get

struct GNUNET_STATISTICS_GetHandle* RPSPeer::h_stat_get[STAT_TYPE_MAX]

Handle for the statistics get request.

Definition at line 605 of file gnunet-rps-profiler.c.

Referenced by post_profiler(), and post_test_shutdown_ready_cb().

◆ eval_probs_cache

double* RPSPeer::eval_probs_cache

Keep the probabilities in cache for computing the probabilities with respect to history.

Definition at line 611 of file gnunet-rps-profiler.c.

Referenced by compute_probabilities(), and post_profiler().


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