GNUnet 0.21.1
Monitor Struct Reference

A peerstore monitor. More...

Collaboration diagram for Monitor:
[legend]

Data Fields

struct Monitornext
 Next element in the DLL. More...
 
struct Monitorprev
 Previous element in the DLL. More...
 
struct PeerstoreClientpc
 Namestore client which intiated this zone monitor. More...
 
struct GNUNET_SCHEDULER_Tasktask
 Task active during initial iteration. More...
 
struct GNUNET_SCHEDULER_Tasksa_wait_warning
 Task to warn about slow monitors. More...
 
struct GNUNET_TIME_Absolute sa_waiting_start
 Since when are we blocked on this monitor? More...
 
uint64_t seq
 Last sequence number in the zone iteration used to address next result of the iteration in the store. More...
 
uint64_t limit
 Current limit of how many more messages we are allowed to queue to this monitor. More...
 
uint64_t iteration_cnt
 How many more requests may we receive from the iterator before it is at the limit we gave it? Will be below or equal to limit. More...
 
int in_first_iteration
 Are we (still) in the initial iteration pass? More...
 
int peer_set
 Is the peer set? More...
 
char * sub_system
 Responsible sub system string. More...
 
struct GNUNET_PeerIdentity peer
 Peer Identity. More...
 
char * key
 Record key string. More...
 

Detailed Description

A peerstore monitor.

Definition at line 50 of file gnunet-service-peerstore.c.

Field Documentation

◆ next

struct Monitor* Monitor::next

Next element in the DLL.

Definition at line 55 of file gnunet-service-peerstore.c.

Referenced by client_disconnect_cb().

◆ prev

struct Monitor* Monitor::prev

Previous element in the DLL.

Definition at line 60 of file gnunet-service-peerstore.c.

◆ pc

struct PeerstoreClient* Monitor::pc

Namestore client which intiated this zone monitor.

Definition at line 65 of file gnunet-service-peerstore.c.

Referenced by client_disconnect_cb().

◆ task

struct GNUNET_SCHEDULER_Task* Monitor::task

Task active during initial iteration.

Definition at line 70 of file gnunet-service-peerstore.c.

Referenced by client_disconnect_cb().

◆ sa_wait_warning

struct GNUNET_SCHEDULER_Task* Monitor::sa_wait_warning

Task to warn about slow monitors.

Definition at line 75 of file gnunet-service-peerstore.c.

Referenced by client_disconnect_cb().

◆ sa_waiting_start

struct GNUNET_TIME_Absolute Monitor::sa_waiting_start

Since when are we blocked on this monitor?

Definition at line 80 of file gnunet-service-peerstore.c.

◆ seq

uint64_t Monitor::seq

Last sequence number in the zone iteration used to address next result of the iteration in the store.

Initially set to 0. Updated in monitor_iterate_cb()

Definition at line 89 of file gnunet-service-peerstore.c.

◆ limit

uint64_t Monitor::limit

Current limit of how many more messages we are allowed to queue to this monitor.

Definition at line 95 of file gnunet-service-peerstore.c.

Referenced by handle_monitor_next().

◆ iteration_cnt

uint64_t Monitor::iteration_cnt

How many more requests may we receive from the iterator before it is at the limit we gave it? Will be below or equal to limit.

The effective limit for monitor events is thus iteration_cnt - limit!

Definition at line 103 of file gnunet-service-peerstore.c.

◆ in_first_iteration

int Monitor::in_first_iteration

Are we (still) in the initial iteration pass?

Definition at line 108 of file gnunet-service-peerstore.c.

◆ peer_set

int Monitor::peer_set

Is the peer set?

Definition at line 113 of file gnunet-service-peerstore.c.

◆ sub_system

char* Monitor::sub_system

Responsible sub system string.

Definition at line 118 of file gnunet-service-peerstore.c.

Referenced by client_disconnect_cb().

◆ peer

struct GNUNET_PeerIdentity Monitor::peer

Peer Identity.

Definition at line 123 of file gnunet-service-peerstore.c.

◆ key

char* Monitor::key

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