GNUnet  last
RPSPeer Struct Reference

Information we track for each peer. More...

Collaboration diagram for RPSPeer:
[legend]

Data Fields

uint32_t index
 Index of the peer. More...
 
struct GNUNET_TESTBED_Operation * op
 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_Operation * stat_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 483 of file gnunet-rps-profiler.c.

Field Documentation

◆ index

◆ op

struct GNUNET_TESTBED_Operation* RPSPeer::op

Handle for RPS connect operation.

Definition at line 493 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 498 of file gnunet-rps-profiler.c.

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

◆ 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 513 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 518 of file gnunet-rps-profiler.c.

Referenced by evaluate(), 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 529 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 535 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 540 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 545 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 550 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 555 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 560 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 567 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 572 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 577 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 582 of file gnunet-rps-profiler.c.

Referenced by pre_profiler().

◆ cur_view

struct GNUNET_PeerIdentity* RPSPeer::cur_view

The current view.

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

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

◆ cur_view_count

◆ count_in_views

uint32_t RPSPeer::count_in_views

Number of occurrences in other peer's view.

Definition at line 597 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 602 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 606 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 612 of file gnunet-rps-profiler.c.

Referenced by compute_probabilities(), post_profiler(), and pre_profiler().


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