GNUnet  0.11.x
Data Fields
GNUNET_DATASTORE_Handle Struct Reference

Handle to the datastore service. More...

Collaboration diagram for GNUNET_DATASTORE_Handle:
[legend]

Data Fields

const struct GNUNET_CONFIGURATION_Handlecfg
 Our configuration. More...
 
struct GNUNET_MQ_Handlemq
 Current connection to the datastore service. More...
 
struct GNUNET_STATISTICS_Handlestats
 Handle for statistics. More...
 
struct GNUNET_DATASTORE_QueueEntryqueue_head
 Current head of priority queue. More...
 
struct GNUNET_DATASTORE_QueueEntryqueue_tail
 Current tail of priority queue. More...
 
struct GNUNET_SCHEDULER_Taskreconnect_task
 Task for trying to reconnect. More...
 
struct GNUNET_TIME_Relative retry_time
 How quickly should we retry? Used for exponential back-off on connect-errors. More...
 
unsigned int queue_size
 Number of entries in the queue. More...
 
unsigned int result_count
 Number of results we're receiving for the current query after application stopped to care. More...
 
unsigned int skip_next_messages
 We should ignore the next message(s) from the service. More...
 

Detailed Description

Handle to the datastore service.

Definition at line 164 of file datastore_api.c.

Field Documentation

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_DATASTORE_Handle::cfg

Our configuration.

Definition at line 169 of file datastore_api.c.

Referenced by GNUNET_DATASTORE_connect(), GNUNET_DATASTORE_disconnect(), and try_reconnect().

◆ mq

struct GNUNET_MQ_Handle* GNUNET_DATASTORE_Handle::mq

Current connection to the datastore service.

Definition at line 174 of file datastore_api.c.

Referenced by do_disconnect(), GNUNET_DATASTORE_connect(), GNUNET_DATASTORE_disconnect(), process_queue(), and try_reconnect().

◆ stats

struct GNUNET_STATISTICS_Handle* GNUNET_DATASTORE_Handle::stats

◆ queue_head

struct GNUNET_DATASTORE_QueueEntry* GNUNET_DATASTORE_Handle::queue_head

◆ queue_tail

struct GNUNET_DATASTORE_QueueEntry* GNUNET_DATASTORE_Handle::queue_tail

Current tail of priority queue.

Definition at line 189 of file datastore_api.c.

Referenced by free_queue_entry(), and make_queue_entry().

◆ reconnect_task

struct GNUNET_SCHEDULER_Task* GNUNET_DATASTORE_Handle::reconnect_task

Task for trying to reconnect.

Definition at line 194 of file datastore_api.c.

Referenced by do_disconnect(), GNUNET_DATASTORE_disconnect(), and try_reconnect().

◆ retry_time

struct GNUNET_TIME_Relative GNUNET_DATASTORE_Handle::retry_time

How quickly should we retry? Used for exponential back-off on connect-errors.

Definition at line 200 of file datastore_api.c.

Referenced by do_disconnect(), handle_data(), handle_data_end(), handle_status(), and try_reconnect().

◆ queue_size

unsigned int GNUNET_DATASTORE_Handle::queue_size

Number of entries in the queue.

Definition at line 205 of file datastore_api.c.

Referenced by free_queue_entry(), handle_data_end(), and make_queue_entry().

◆ result_count

unsigned int GNUNET_DATASTORE_Handle::result_count

Number of results we're receiving for the current query after application stopped to care.

Used to determine when to reset the connection.

Definition at line 212 of file datastore_api.c.

Referenced by handle_data_end().

◆ skip_next_messages

unsigned int GNUNET_DATASTORE_Handle::skip_next_messages

We should ignore the next message(s) from the service.

Definition at line 217 of file datastore_api.c.

Referenced by do_disconnect(), get_queue_head(), and GNUNET_DATASTORE_cancel().


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