GNUnet 0.21.0
GetMessage Struct Reference

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

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/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 reserved
 These days not used. 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_(), 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().

◆ 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().

◆ priority

uint32_t GetMessage::priority

How important is this request (network byte order)

Definition at line 96 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 101 of file gnunet-service-fs.h.

Referenced by GSF_pending_request_get_message_(), and handle_p2p_get().

◆ reserved

uint32_t GetMessage::reserved

These days not used.

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

Referenced by GSF_pending_request_get_message_().

◆ 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 115 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 121 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: