GNUnet 0.21.0
Iteration Struct Reference

A peerstore iteration operation. More...

Collaboration diagram for Iteration:
[legend]

Data Fields

struct Iterationnext
 Next element in the DLL. More...
 
struct Iterationprev
 Previous element in the DLL. More...
 
struct PeerstoreClientpc
 Namestore client which intiated this zone iteration. More...
 
uint64_t seq
 Last sequence number in the zone iteration used to address next result of the zone iteration in the store. More...
 
uint32_t request_id
 The operation id for the zone iteration in the response for the client. More...
 
uint32_t offset
 Offset of the zone iteration used to address next result of the zone iteration in the store. More...
 
int send_end
 Set to GNUNET_YES if the last iteration exhausted the limit set by the client and we should send the #GNUNET_MESSAGE_TYPE_PEERSTORE_RECORD_RESULT_END message and free the data structure. More...
 
char * sub_system
 Responsible sub system string. More...
 
struct GNUNET_PeerIdentity peer
 Peer Identity. More...
 
char * key
 Record key string. More...
 
int peer_set
 Peer is set? More...
 

Detailed Description

A peerstore iteration operation.

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

Field Documentation

◆ next

struct Iteration* Iteration::next

Next element in the DLL.

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

Referenced by handle_iterate_next(), and handle_iterate_stop().

◆ prev

struct Iteration* Iteration::prev

Previous element in the DLL.

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

◆ pc

struct PeerstoreClient* Iteration::pc

Namestore client which intiated this zone iteration.

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

Referenced by handle_iterate_start(), iterate_proc(), and iteration_done_client_continue().

◆ seq

uint64_t Iteration::seq

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

Initially set to 0. Updated in zone_iterate_proc()

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

Referenced by iterate_proc(), and run_iteration_round().

◆ request_id

uint32_t Iteration::request_id

The operation id for the zone iteration in the response for the client.

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

Referenced by handle_iterate_next(), handle_iterate_start(), handle_iterate_stop(), iterate_proc(), and iteration_done_client_continue().

◆ offset

uint32_t Iteration::offset

Offset of the zone iteration used to address next result of the zone iteration in the store.

Initially set to 0 in handle_iteration_start Incremented with by every call to handle_iteration_next

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

Referenced by handle_iterate_start().

◆ send_end

int Iteration::send_end

Set to GNUNET_YES if the last iteration exhausted the limit set by the client and we should send the #GNUNET_MESSAGE_TYPE_PEERSTORE_RECORD_RESULT_END message and free the data structure.

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

Referenced by iteration_done_client_continue(), and run_iteration_round().

◆ sub_system

char* Iteration::sub_system

Responsible sub system string.

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

Referenced by handle_iterate_start(), iteration_done_client_continue(), and run_iteration_round().

◆ peer

struct GNUNET_PeerIdentity Iteration::peer

Peer Identity.

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

Referenced by handle_iterate_start(), and run_iteration_round().

◆ key

◆ peer_set

int Iteration::peer_set

Peer is set?

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

Referenced by handle_iterate_start(), and run_iteration_round().


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