GNUnet 0.22.2
fs.h File Reference

definitions for the entire fs module More...

Include dependency graph for fs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ContentHashKey
 content hash key More...
 
struct  RequestLocSignatureMessage
 Message sent from a GNUnet (fs) publishing activity to sign a LOC URI. More...
 
struct  ResponseLocSignatureMessage
 Message sent from the service with the signed LOC URI. More...
 
struct  IndexStartMessage
 Message sent from a GNUnet (fs) publishing activity to the gnunet-fs-service to initiate indexing of a file. More...
 
struct  IndexInfoMessage
 Message send by FS service in response to a request asking for a list of all indexed files. More...
 
struct  UnindexMessage
 Message sent from a GNUnet (fs) unindexing activity to the gnunet-service-fs to indicate that a file will be unindexed. More...
 
struct  SearchMessage
 Message sent from a GNUnet (fs) search activity to the gnunet-service-fs to start a search. More...
 
struct  PutMessage
 Response from FS service with a result for a previous FS search. More...
 
struct  ClientPutMessage
 Response from FS service with a result for a previous FS search. More...
 

Macros

#define DBLOCK_SIZE   (32 * 1024)
 Size of the individual blocks used for file-sharing. More...
 
#define HASHING_BLOCKSIZE   (1024 * 128)
 Blocksize to use when hashing files for indexing (blocksize for IO, not for the DBlocks). More...
 
#define SEARCH_MESSAGE_OPTION_NONE   0
 No options. More...
 
#define SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY   1
 Only search the local datastore (no network) More...
 
#define SEARCH_MESSAGE_OPTION_CONTINUED   2
 Request is too large to fit in 64k format. More...
 

Detailed Description

definitions for the entire fs module

Author
Igor Wronsky, Christian Grothoff

Definition in file fs.h.

Macro Definition Documentation

◆ DBLOCK_SIZE

#define DBLOCK_SIZE   (32 * 1024)

Size of the individual blocks used for file-sharing.

Definition at line 41 of file fs.h.

◆ HASHING_BLOCKSIZE

#define HASHING_BLOCKSIZE   (1024 * 128)

Blocksize to use when hashing files for indexing (blocksize for IO, not for the DBlocks).

Larger blocksizes can be more efficient but will be more disruptive as far as the scheduler is concerned.

Definition at line 48 of file fs.h.

◆ SEARCH_MESSAGE_OPTION_NONE

#define SEARCH_MESSAGE_OPTION_NONE   0

No options.

Definition at line 249 of file fs.h.

◆ SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY

#define SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY   1

Only search the local datastore (no network)

Definition at line 254 of file fs.h.

◆ SEARCH_MESSAGE_OPTION_CONTINUED

#define SEARCH_MESSAGE_OPTION_CONTINUED   2

Request is too large to fit in 64k format.

The list of already-known search results will be continued in another message for the same type/query/target and additional already-known results following this one).

Definition at line 262 of file fs.h.