GNUnet 0.21.1
SearchRequestEntry Struct Reference

Information we keep for each keyword in a keyword search. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/fs/fs_api.h>

Collaboration diagram for SearchRequestEntry:
[legend]

Data Fields

struct GNUNET_HashCode uquery
 Hash of the public key, also known as the query. More...
 
struct GNUNET_CRYPTO_EcdsaPublicKey dpub
 Derived public key, hashes to 'uquery'. More...
 
char * keyword
 The original keyword, used to derive the key (for decrypting the UBlock). More...
 
struct GNUNET_CONTAINER_MultiHashMapresults
 Map that contains a "struct GNUNET_FS_SearchResult" for each result that was found under this keyword. More...
 
int mandatory
 Is this keyword a mandatory keyword (started with '+')? More...
 

Detailed Description

Information we keep for each keyword in a keyword search.

Definition at line 1471 of file fs_api.h.

Field Documentation

◆ uquery

struct GNUNET_HashCode SearchRequestEntry::uquery

Hash of the public key, also known as the query.

Definition at line 1476 of file fs_api.h.

Referenced by GNUNET_FS_search_start_searching_(), and schedule_transmit_search_request().

◆ dpub

struct GNUNET_CRYPTO_EcdsaPublicKey SearchRequestEntry::dpub

Derived public key, hashes to 'uquery'.

Definition at line 1481 of file fs_api.h.

Referenced by decrypt_block_with_keyword(), and GNUNET_FS_search_start_searching_().

◆ keyword

char* SearchRequestEntry::keyword

The original keyword, used to derive the key (for decrypting the UBlock).

Definition at line 1487 of file fs_api.h.

Referenced by decrypt_block_with_keyword(), GNUNET_FS_search_signal_suspend_(), GNUNET_FS_search_start_searching_(), and GNUNET_FS_search_stop().

◆ results

struct GNUNET_CONTAINER_MultiHashMap* SearchRequestEntry::results

Map that contains a "struct GNUNET_FS_SearchResult" for each result that was found under this keyword.

Note that the entries will point to the same locations as those in the master result map (in "struct GNUNET_FS_SearchContext"), so they should not be freed. The key for each entry is the XOR of the key and query in the CHK URI (as a unique identifier for the search result).

Definition at line 1497 of file fs_api.h.

Referenced by GNUNET_FS_search_signal_suspend_(), GNUNET_FS_search_start_searching_(), GNUNET_FS_search_stop(), process_ksk_result(), and update_sre_result_maps().

◆ mandatory

int SearchRequestEntry::mandatory

Is this keyword a mandatory keyword (started with '+')?

Definition at line 1503 of file fs_api.h.

Referenced by GNUNET_FS_search_start_searching_(), and process_ksk_result().


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