GNUnet  0.10.x
Data Structures | Macros
fs.h File Reference

definitions for the entire fs module More...

#include "gnunet_constants.h"
#include "gnunet_datastore_service.h"
#include "gnunet_dht_service.h"
#include "gnunet_fs_service.h"
#include "gnunet_block_lib.h"
#include "block_fs.h"
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)

◆ 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 47 of file fs.h.

Referenced by deserialize_unindex_file(), GNUNET_FS_publish_main_(), GNUNET_FS_unindex_start(), and handle_client_index_start().

◆ SEARCH_MESSAGE_OPTION_NONE

#define SEARCH_MESSAGE_OPTION_NONE   0

No options.

Definition at line 242 of file fs.h.

Referenced by schedule_transmit_search_request().

◆ SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY

#define SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY   1

Only search the local datastore (no network)

Definition at line 247 of file fs.h.

Referenced by handle_client_start_search(), and schedule_transmit_search_request().

◆ 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 255 of file fs.h.

Referenced by handle_client_start_search(), and schedule_transmit_search_request().