GNUnet  0.19.4
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.

◆ 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.

◆ 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_testing.Test::add_peer().

◆ subsystem

◆ name

◆ 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 gnunet_pyexpect.pexpect::spawn().

◆ 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 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.

◆ 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.

◆ 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.

◆ 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.


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