GNUnet  0.11.x
Data Fields
GSF_PendingRequestData Struct Reference

Public data (in the sense of not encapsulated within 'gnunet-service-fs_pr', not in the sense of network-wide known) associated with each pending request. More...

#include </home/handbook/gnunet/src/fs/gnunet-service-fs_pr.h>

Collaboration diagram for GSF_PendingRequestData:
[legend]

Data Fields

struct GNUNET_HashCode query
 Primary query hash for this request. More...
 
const struct GNUNET_PeerIdentitytarget
 Identity of a peer hosting the content, otherwise NULl. More...
 
struct GSF_PendingRequestPlanBijectionpr_head
 Fields for the plan module to track a DLL with the request. More...
 
struct GSF_PendingRequestPlanBijectionpr_tail
 Fields for the plan module to track a DLL with the request. More...
 
struct GNUNET_TIME_Absolute ttl
 Current TTL for the request. More...
 
struct GNUNET_TIME_Absolute start_time
 When did we start with the request. More...
 
uint32_t anonymity_level
 Desired anonymity level. More...
 
uint32_t priority
 Priority that this request (still) has for us. More...
 
uint32_t original_priority
 Priority that this request (originally) had for us. More...
 
uint32_t num_transmissions
 Counter for how often this request has been transmitted (estimate, because we might have the same request pending for multiple clients, and of course because a transmission may have failed at a lower layer). More...
 
uint32_t respect_offered
 How much respect did we (in total) offer for this request so far (estimate, because we might have the same request pending for multiple clients, and of course because a transmission may have failed at a lower layer). More...
 
enum GSF_PendingRequestOptions options
 Options for the request. More...
 
enum GNUNET_BLOCK_Type type
 Type of the requested block. More...
 
unsigned int results_found
 Number of results we have found for this request so far. More...
 
int has_started
 Has this request been started yet (local/p2p operations)? Or are we still constructing it? More...
 

Detailed Description

Public data (in the sense of not encapsulated within 'gnunet-service-fs_pr', not in the sense of network-wide known) associated with each pending request.

Definition at line 81 of file gnunet-service-fs_pr.h.

Field Documentation

◆ query

struct GNUNET_HashCode GSF_PendingRequestData::query

◆ target

const struct GNUNET_PeerIdentity* GSF_PendingRequestData::target

Identity of a peer hosting the content, otherwise NULl.

Allocated after struct only if needed. Do not free!

Definition at line 92 of file gnunet-service-fs_pr.h.

Referenced by cadet_reply_proc(), GSF_cadet_lookup_(), GSF_pending_request_create_(), and GSF_pending_request_get_message_().

◆ pr_head

struct GSF_PendingRequestPlanBijection* GSF_PendingRequestData::pr_head

Fields for the plan module to track a DLL with the request.

Definition at line 97 of file gnunet-service-fs_pr.h.

Referenced by GSF_plan_add_(), GSF_plan_notify_peer_disconnect_(), GSF_plan_notify_request_done_(), merge_pr(), and process_reply().

◆ pr_tail

struct GSF_PendingRequestPlanBijection* GSF_PendingRequestData::pr_tail

Fields for the plan module to track a DLL with the request.

Definition at line 102 of file gnunet-service-fs_pr.h.

Referenced by GSF_plan_add_(), GSF_plan_notify_peer_disconnect_(), GSF_plan_notify_request_done_(), and merge_pr().

◆ ttl

struct GNUNET_TIME_Absolute GSF_PendingRequestData::ttl

Current TTL for the request.

Definition at line 107 of file gnunet-service-fs_pr.h.

Referenced by get_latest(), GSF_pending_request_create_(), GSF_pending_request_get_message_(), merge_pr(), and test_exist_cb().

◆ start_time

struct GNUNET_TIME_Absolute GSF_PendingRequestData::start_time

When did we start with the request.

Definition at line 112 of file gnunet-service-fs_pr.h.

Referenced by GSF_pending_request_create_(), process_local_reply(), process_reply(), and update_request_performance_data().

◆ anonymity_level

uint32_t GSF_PendingRequestData::anonymity_level

Desired anonymity level.

Definition at line 117 of file gnunet-service-fs_pr.h.

Referenced by GSF_cadet_lookup_(), GSF_dht_lookup_(), GSF_pending_request_create_(), and start_p2p_processing().

◆ priority

uint32_t GSF_PendingRequestData::priority

Priority that this request (still) has for us.

Definition at line 122 of file gnunet-service-fs_pr.h.

Referenced by GSF_pending_request_create_(), GSF_pending_request_get_message_(), process_local_reply(), process_reply(), and test_exist_cb().

◆ original_priority

uint32_t GSF_PendingRequestData::original_priority

Priority that this request (originally) had for us.

Definition at line 127 of file gnunet-service-fs_pr.h.

Referenced by GSF_pending_request_create_(), and process_reply().

◆ num_transmissions

uint32_t GSF_PendingRequestData::num_transmissions

Counter for how often this request has been transmitted (estimate, because we might have the same request pending for multiple clients, and of course because a transmission may have failed at a lower layer).

Definition at line 135 of file gnunet-service-fs_pr.h.

Referenced by client_response_handler(), and GSF_pending_request_get_message_().

◆ respect_offered

uint32_t GSF_PendingRequestData::respect_offered

How much respect did we (in total) offer for this request so far (estimate, because we might have the same request pending for multiple clients, and of course because a transmission may have failed at a lower layer).

Definition at line 143 of file gnunet-service-fs_pr.h.

Referenced by client_response_handler(), and GSF_pending_request_get_message_().

◆ options

enum GSF_PendingRequestOptions GSF_PendingRequestData::options

◆ type

enum GNUNET_BLOCK_Type GSF_PendingRequestData::type

◆ results_found

unsigned int GSF_PendingRequestData::results_found

Number of results we have found for this request so far.

Definition at line 158 of file gnunet-service-fs_pr.h.

Referenced by process_local_reply(), and process_reply().

◆ has_started

int GSF_PendingRequestData::has_started

Has this request been started yet (local/p2p operations)? Or are we still constructing it?

Definition at line 164 of file gnunet-service-fs_pr.h.

Referenced by handle_client_start_search(), and handle_p2p_get().


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