GNUnet 0.22.2
GNUNET_DHT_GetHandle Struct Reference

Handle to a GET request. More...

Collaboration diagram for GNUNET_DHT_GetHandle:
[legend]

Data Fields

GNUNET_DHT_GetIterator iter
 Iterator to call on data receipt. More...
 
void * iter_cls
 Closure for iter. More...
 
struct GNUNET_DHT_Handledht_handle
 Main handle to this DHT api. More...
 
struct GNUNET_HashCodeseen_results
 Array of hash codes over the results that we have already seen. More...
 
struct GNUNET_HashCode key
 Key that this get request is for. More...
 
uint64_t unique_id
 Unique identifier for this request (for key collisions). More...
 
size_t xquery_size
 Size of the extended query, allocated at the end of this struct. More...
 
uint32_t desired_replication_level
 Desired replication level. More...
 
enum GNUNET_BLOCK_Type type
 Type of the block we are looking for. More...
 
enum GNUNET_DHT_RouteOption options
 Routing options. More...
 
unsigned int seen_results_size
 Size of the seen_results array. More...
 
unsigned int seen_results_end
 Offset into the seen_results array marking the end of the positions that are actually used. More...
 

Detailed Description

Handle to a GET request.

Definition at line 78 of file dht_api.c.

Field Documentation

◆ iter

GNUNET_DHT_GetIterator GNUNET_DHT_GetHandle::iter

Iterator to call on data receipt.

Definition at line 83 of file dht_api.c.

Referenced by GNUNET_DHT_get_start(), and process_client_result().

◆ iter_cls

void* GNUNET_DHT_GetHandle::iter_cls

Closure for iter.

Definition at line 88 of file dht_api.c.

Referenced by GNUNET_DHT_get_start(), and process_client_result().

◆ dht_handle

struct GNUNET_DHT_Handle* GNUNET_DHT_GetHandle::dht_handle

Main handle to this DHT api.

Definition at line 93 of file dht_api.c.

Referenced by GNUNET_DHT_get_filter_known_results(), GNUNET_DHT_get_start(), GNUNET_DHT_get_stop(), send_get(), and send_get_known_results().

◆ seen_results

struct GNUNET_HashCode* GNUNET_DHT_GetHandle::seen_results

Array of hash codes over the results that we have already seen.

Definition at line 99 of file dht_api.c.

Referenced by GNUNET_DHT_get_filter_known_results(), GNUNET_DHT_get_stop(), process_client_result(), and send_get_known_results().

◆ key

struct GNUNET_HashCode GNUNET_DHT_GetHandle::key

◆ unique_id

uint64_t GNUNET_DHT_GetHandle::unique_id

Unique identifier for this request (for key collisions).

Definition at line 109 of file dht_api.c.

Referenced by GNUNET_DHT_get_start(), GNUNET_DHT_get_stop(), process_client_result(), send_get(), and send_get_known_results().

◆ xquery_size

size_t GNUNET_DHT_GetHandle::xquery_size

Size of the extended query, allocated at the end of this struct.

Definition at line 114 of file dht_api.c.

Referenced by GNUNET_DHT_get_start(), and send_get().

◆ desired_replication_level

uint32_t GNUNET_DHT_GetHandle::desired_replication_level

Desired replication level.

Definition at line 119 of file dht_api.c.

Referenced by GNUNET_DHT_get_start(), and send_get().

◆ type

enum GNUNET_BLOCK_Type GNUNET_DHT_GetHandle::type

Type of the block we are looking for.

Definition at line 124 of file dht_api.c.

Referenced by GNUNET_DHT_get_start(), process_client_result(), and send_get().

◆ options

enum GNUNET_DHT_RouteOption GNUNET_DHT_GetHandle::options

Routing options.

Definition at line 129 of file dht_api.c.

Referenced by GNUNET_DHT_get_start(), and send_get().

◆ seen_results_size

unsigned int GNUNET_DHT_GetHandle::seen_results_size

Size of the seen_results array.

Note that not all positions might be used (as we over-allocate).

Definition at line 135 of file dht_api.c.

Referenced by GNUNET_DHT_get_filter_known_results(), and process_client_result().

◆ seen_results_end

unsigned int GNUNET_DHT_GetHandle::seen_results_end

Offset into the seen_results array marking the end of the positions that are actually used.

Definition at line 141 of file dht_api.c.

Referenced by GNUNET_DHT_get_filter_known_results(), GNUNET_DHT_get_stop(), process_client_result(), and send_get_known_results().


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