A namestore iteration operation. More...
Data Fields | |
struct ZoneIteration * | next |
Next element in the DLL. More... | |
struct ZoneIteration * | prev |
Previous element in the DLL. More... | |
struct NamestoreClient * | nc |
Namestore client which initiated this zone iteration. More... | |
struct GNUNET_GNSRECORD_Data * | nick |
The nick to add to the records. More... | |
struct GNUNET_CRYPTO_PrivateKey | zone |
Key of the zone we are iterating over. More... | |
enum GNUNET_GNSRECORD_Filter | filter |
The record set filter. 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_NAMESTORE_RECORD_RESULT_END message and free the data structure. More... | |
A namestore iteration operation.
Definition at line 57 of file gnunet-service-namestore.c.
struct ZoneIteration* ZoneIteration::next |
Next element in the DLL.
Definition at line 62 of file gnunet-service-namestore.c.
Referenced by handle_iteration_next(), and handle_iteration_stop().
struct ZoneIteration* ZoneIteration::prev |
Previous element in the DLL.
Definition at line 67 of file gnunet-service-namestore.c.
struct NamestoreClient* ZoneIteration::nc |
Namestore client which initiated this zone iteration.
Definition at line 72 of file gnunet-service-namestore.c.
Referenced by handle_iteration_start(), run_zone_iteration_round(), zone_iterate_proc(), and zone_iteration_done_client_continue().
struct GNUNET_GNSRECORD_Data* ZoneIteration::nick |
The nick to add to the records.
Definition at line 77 of file gnunet-service-namestore.c.
struct GNUNET_CRYPTO_PrivateKey ZoneIteration::zone |
Key of the zone we are iterating over.
Definition at line 82 of file gnunet-service-namestore.c.
Referenced by handle_iteration_start(), and run_zone_iteration_round().
enum GNUNET_GNSRECORD_Filter ZoneIteration::filter |
The record set filter.
Definition at line 87 of file gnunet-service-namestore.c.
Referenced by handle_iteration_start(), and zone_iterate_proc().
uint64_t ZoneIteration::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 96 of file gnunet-service-namestore.c.
Referenced by run_zone_iteration_round(), and zone_iterate_proc().
uint32_t ZoneIteration::request_id |
The operation id for the zone iteration in the response for the client.
Definition at line 101 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().
uint32_t ZoneIteration::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 110 of file gnunet-service-namestore.c.
Referenced by handle_iteration_start().
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.
Definition at line 117 of file gnunet-service-namestore.c.
Referenced by run_zone_iteration_round(), and zone_iteration_done_client_continue().