GNUnet  0.11.x
Data Fields
ZoneIteration Struct Reference

A namestore iteration operation. More...

Collaboration diagram for ZoneIteration:
[legend]

Data Fields

struct ZoneIterationnext
 Next element in the DLL. More...
 
struct ZoneIterationprev
 Previous element in the DLL. More...
 
struct NamestoreClientnc
 Namestore client which intiated this zone iteration. More...
 
struct GNUNET_GNSRECORD_Datanick
 The nick to add to the records. More...
 
struct GNUNET_CRYPTO_EcdsaPrivateKey zone
 Key of the zone we are iterating over. 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 fot 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...
 
unsigned int cache_ops
 Number of pending cache operations triggered by this zone iteration which we need to wait for before allowing the client to continue. 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_NAMESTORE_RECORD_RESULT_END message and free the data structure once cache_ops is zero. More...
 

Detailed Description

A namestore iteration operation.

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

Field Documentation

◆ next

struct ZoneIteration* ZoneIteration::next

Next element in the DLL.

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

Referenced by handle_iteration_next(), and handle_iteration_stop().

◆ prev

struct ZoneIteration* ZoneIteration::prev

Previous element in the DLL.

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

◆ nc

struct NamestoreClient* ZoneIteration::nc

◆ nick

struct GNUNET_GNSRECORD_Data* ZoneIteration::nick

The nick to add to the records.

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

Referenced by cache_nick(), get_nick_record(), refresh_block(), and send_lookup_response().

◆ zone

struct GNUNET_CRYPTO_EcdsaPrivateKey ZoneIteration::zone

Key of the zone we are iterating over.

Definition at line 85 of file gnunet-service-namestore.c.

Referenced by cache_nick(), handle_iteration_start(), and run_zone_iteration_round().

◆ seq

uint64_t ZoneIteration::seq

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

Initialy set to 0. Updated in zone_iterate_proc()

Definition at line 94 of file gnunet-service-namestore.c.

Referenced by monitor_iterate_cb(), run_zone_iteration_round(), and zone_iterate_proc().

◆ request_id

uint32_t ZoneIteration::request_id

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

Definition at line 99 of file gnunet-service-namestore.c.

Referenced by handle_iteration_next(), handle_iteration_start(), handle_iteration_stop(), zone_iterate_proc(), and zone_iteration_done_client_continue().

◆ offset

uint32_t ZoneIteration::offset

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

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

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

Referenced by handle_iteration_start().

◆ cache_ops

unsigned int ZoneIteration::cache_ops

Number of pending cache operations triggered by this zone iteration which we need to wait for before allowing the client to continue.

Definition at line 114 of file gnunet-service-namestore.c.

Referenced by finish_cache_operation(), refresh_block(), and run_zone_iteration_round().

◆ send_end

int ZoneIteration::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_NAMESTORE_RECORD_RESULT_END message and free the data structure once cache_ops is zero.

Definition at line 121 of file gnunet-service-namestore.c.

Referenced by run_zone_iteration_round(), and zone_iteration_done_client_continue().


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