GNUnet  0.11.x
Data Fields
GetStatsContext Struct Reference

Context information for use in GNUNET_TESTBED_get_statistics() More...

Collaboration diagram for GetStatsContext:
[legend]

Data Fields

struct GNUNET_TESTBED_Operationmain_op
 The main operation we generate while creating this context. More...
 
struct GNUNET_TESTBED_Operation ** ops
 The service connect operations we create to open connection to the statistics service of each given peer. More...
 
struct GNUNET_TESTBED_Peer ** peers
 The array of peers whose statistics services are to be accessed. More...
 
char * subsystem
 The subsystem of peers for which statistics are requested. More...
 
char * name
 The particular statistics value of interest. More...
 
GNUNET_TESTBED_StatisticsIterator proc
 The iterator to call with statistics information. More...
 
GNUNET_TESTBED_OperationCompletionCallback cont
 The callback to call when we are done iterating through all peers' statistics services. More...
 
void * cb_cls
 The closure for the above callbacks. More...
 
struct GNUNET_SCHEDULER_Taskcall_completion_task_id
 The task for calling the continuation callback. More...
 
unsigned int num_peers
 The number of peers present in the peers array. More...
 
unsigned int num_completed
 How many peers' statistics have we iterated through. More...
 

Detailed Description

Context information for use in GNUNET_TESTBED_get_statistics()

Definition at line 50 of file testbed_api_statistics.c.

Field Documentation

◆ main_op

struct GNUNET_TESTBED_Operation* GetStatsContext::main_op

The main operation we generate while creating this context.

Definition at line 55 of file testbed_api_statistics.c.

Referenced by call_completion_task(), and GNUNET_TESTBED_get_statistics().

◆ ops

struct GNUNET_TESTBED_Operation** GetStatsContext::ops

The service connect operations we create to open connection to the statistics service of each given peer.

Definition at line 61 of file testbed_api_statistics.c.

Referenced by op_done_task(), oprelease_get_stats(), and opstart_get_stats().

◆ peers

struct GNUNET_TESTBED_Peer** GetStatsContext::peers

The array of peers whose statistics services are to be accessed.

Definition at line 66 of file testbed_api_statistics.c.

Referenced by GNUNET_TESTBED_get_statistics(), iterator_cb(), and opstart_get_stats().

◆ subsystem

char* GetStatsContext::subsystem

The subsystem of peers for which statistics are requested.

Definition at line 71 of file testbed_api_statistics.c.

Referenced by GNUNET_TESTBED_get_statistics(), oprelease_get_stats(), and service_connect_comp().

◆ name

char* GetStatsContext::name

The particular statistics value of interest.

Definition at line 76 of file testbed_api_statistics.c.

Referenced by GNUNET_TESTBED_get_statistics(), oprelease_get_stats(), and service_connect_comp().

◆ proc

GNUNET_TESTBED_StatisticsIterator GetStatsContext::proc

The iterator to call with statistics information.

Definition at line 81 of file testbed_api_statistics.c.

Referenced by GNUNET_TESTBED_get_statistics(), and iterator_cb().

◆ cont

The callback to call when we are done iterating through all peers' statistics services.

Definition at line 87 of file testbed_api_statistics.c.

Referenced by call_completion_task(), and GNUNET_TESTBED_get_statistics().

◆ cb_cls

void* GetStatsContext::cb_cls

The closure for the above callbacks.

Definition at line 92 of file testbed_api_statistics.c.

Referenced by call_completion_task(), GNUNET_TESTBED_get_statistics(), and iterator_cb().

◆ call_completion_task_id

struct GNUNET_SCHEDULER_Task* GetStatsContext::call_completion_task_id

The task for calling the continuation callback.

Definition at line 97 of file testbed_api_statistics.c.

Referenced by call_completion_task(), iteration_completion_cb(), and oprelease_get_stats().

◆ num_peers

unsigned int GetStatsContext::num_peers

The number of peers present in the peers array.

This number also represents the number of service connect operations in the ops array

Definition at line 103 of file testbed_api_statistics.c.

Referenced by GNUNET_TESTBED_get_statistics(), iteration_completion_cb(), oprelease_get_stats(), and opstart_get_stats().

◆ num_completed

unsigned int GetStatsContext::num_completed

How many peers' statistics have we iterated through.

Definition at line 108 of file testbed_api_statistics.c.

Referenced by iteration_completion_cb().


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