GNUnet 0.22.2
ActiveContext Struct Reference

Context for a peer which actively does DHT PUT/GET. More...

Collaboration diagram for ActiveContext:
[legend]

Data Fields

struct Contextctx
 The linked peer context. More...
 
struct GNUNET_DHT_Handledht
 Handler to the DHT service. More...
 
struct ActiveContextget_ac
 The active context used for our DHT GET. More...
 
struct GNUNET_DHT_PutHandledht_put
 The put handle. More...
 
struct GNUNET_DHT_GetHandledht_get
 The get handle. More...
 
struct GNUNET_HashCodehash
 The hashes of the values stored via this activity context. More...
 
struct GNUNET_SCHEDULER_Taskdelay_task
 Delay task. More...
 
unsigned int put_count
 How many puts should we still issue? More...
 
uint16_t nrefs
 The number of peers currently doing GET on our data. More...
 

Detailed Description

Context for a peer which actively does DHT PUT/GET.

Definition at line 85 of file gnunet_dht_profiler.c.

Field Documentation

◆ ctx

struct Context* ActiveContext::ctx

The linked peer context.

Definition at line 90 of file gnunet_dht_profiler.c.

Referenced by cancel_get(), delayed_put(), dht_connected(), get_iter(), start_profiling(), and test_run().

◆ dht

struct GNUNET_DHT_Handle* ActiveContext::dht

Handler to the DHT service.

Definition at line 95 of file gnunet_dht_profiler.c.

Referenced by delayed_get(), delayed_put(), dht_connected(), and dht_disconnect().

◆ get_ac

struct ActiveContext* ActiveContext::get_ac

The active context used for our DHT GET.

Definition at line 100 of file gnunet_dht_profiler.c.

Referenced by delayed_get(), and get_iter().

◆ dht_put

struct GNUNET_DHT_PutHandle* ActiveContext::dht_put

The put handle.

Definition at line 105 of file gnunet_dht_profiler.c.

Referenced by delayed_put(), do_shutdown(), and put_cont().

◆ dht_get

struct GNUNET_DHT_GetHandle* ActiveContext::dht_get

The get handle.

Definition at line 110 of file gnunet_dht_profiler.c.

Referenced by cancel_get(), delayed_get(), do_shutdown(), and get_iter().

◆ hash

struct GNUNET_HashCode* ActiveContext::hash

The hashes of the values stored via this activity context.

Array of length num_puts_per_peer.

Definition at line 116 of file gnunet_dht_profiler.c.

Referenced by delayed_get(), delayed_put(), dht_connected(), and do_shutdown().

◆ delay_task

struct GNUNET_SCHEDULER_Task* ActiveContext::delay_task

Delay task.

Definition at line 121 of file gnunet_dht_profiler.c.

Referenced by cancel_get(), delayed_get(), delayed_put(), dht_connected(), do_shutdown(), get_iter(), and put_cont().

◆ put_count

unsigned int ActiveContext::put_count

How many puts should we still issue?

Definition at line 126 of file gnunet_dht_profiler.c.

Referenced by delayed_put(), and dht_connected().

◆ nrefs

uint16_t ActiveContext::nrefs

The number of peers currently doing GET on our data.

Definition at line 131 of file gnunet_dht_profiler.c.

Referenced by delayed_get(), and get_iter().


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