GNUnet  0.11.x
Data Fields
GetMessage Struct Reference

Message to the datastore service asking about specific content. More...

#include </home/handbook/gnunet/src/datastore/datastore.h>

Collaboration diagram for GetMessage:
[legend]

Data Fields

struct GNUNET_MessageHeader header
 Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET. More...
 
uint32_t type
 Desired content type. More...
 
uint64_t next_uid
 UID at which to start the search. More...
 
uint32_t random
 If true return a random result. More...
 
uint32_t priority
 How important is this request (network byte order) More...
 
int32_t ttl
 Relative time to live in MILLISECONDS (network byte order) More...
 
uint32_t filter_mutator
 The content hash should be mutated using this value before checking against the bloomfilter (used to get many different filters for the same hash codes). More...
 
uint32_t hash_bitmap
 Which of the optional hash codes are present at the end of the message? See GET_MESSAGE_BIT_xx constants. More...
 
struct GNUNET_HashCode query
 Hashcodes of the file(s) we're looking for. More...
 

Detailed Description

Message to the datastore service asking about specific content.

Message sent between peers asking for FS-content.

Definition at line 140 of file datastore.h.

Field Documentation

◆ header

struct GNUNET_MessageHeader GetMessage::header

Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET.

Message type will be GNUNET_MESSAGE_TYPE_FS_GET.

Definition at line 145 of file datastore.h.

Referenced by check_p2p_get(), and handle_p2p_get().

◆ type

uint32_t GetMessage::type

Desired content type.

Type of the query (block type).

(actually an enum GNUNET_BLOCK_Type)

Definition at line 150 of file datastore.h.

Referenced by GNUNET_DATASTORE_get_key(), GSF_pending_request_get_message_(), handle_get(), and handle_p2p_get().

◆ next_uid

uint64_t GetMessage::next_uid

UID at which to start the search.

Definition at line 155 of file datastore.h.

Referenced by GNUNET_DATASTORE_get_key(), and handle_get().

◆ random

uint32_t GetMessage::random

If true return a random result.

Definition at line 160 of file datastore.h.

Referenced by GNUNET_DATASTORE_get_key(), and handle_get().

◆ priority

uint32_t GetMessage::priority

How important is this request (network byte order)

Definition at line 98 of file gnunet-service-fs.h.

Referenced by GSF_pending_request_get_message_(), and handle_p2p_get().

◆ ttl

int32_t GetMessage::ttl

Relative time to live in MILLISECONDS (network byte order)

Definition at line 103 of file gnunet-service-fs.h.

Referenced by GSF_pending_request_get_message_(), and handle_p2p_get().

◆ filter_mutator

uint32_t GetMessage::filter_mutator

The content hash should be mutated using this value before checking against the bloomfilter (used to get many different filters for the same hash codes).

The number should be in big-endian format when used for mingling.

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

Referenced by GSF_pending_request_get_message_(), and handle_p2p_get().

◆ hash_bitmap

uint32_t GetMessage::hash_bitmap

Which of the optional hash codes are present at the end of the message? See GET_MESSAGE_BIT_xx constants.

For each bit that is set, an additional struct GNUNET_HashCode with the respective content (in order of the bits) will be appended to the end of the GET message.

Definition at line 121 of file gnunet-service-fs.h.

Referenced by check_p2p_get(), GSF_pending_request_get_message_(), and handle_p2p_get().

◆ query

struct GNUNET_HashCode GetMessage::query

Hashcodes of the file(s) we're looking for.

Details depend on the query type.

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

Referenced by gnunet-chk.Chk::__init__(), GSF_pending_request_get_message_(), handle_p2p_get(), and gnunet-chk.Chk::uri().


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