aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-04 11:31:08 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-04 11:31:08 +0000
commit3ef84f3677066f95a67a3df8b9943cf7892a7894 (patch)
tree516f96330eb166f9e4b940cb20ca00cae96c7570 /src/fs/gnunet-service-fs.h
parentfb199b4553100aa977d4d2f4a108bb0a27a705d2 (diff)
downloadgnunet-3ef84f3677066f95a67a3df8b9943cf7892a7894.tar.gz
gnunet-3ef84f3677066f95a67a3df8b9943cf7892a7894.zip
fixes
Diffstat (limited to 'src/fs/gnunet-service-fs.h')
-rw-r--r--src/fs/gnunet-service-fs.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs.h b/src/fs/gnunet-service-fs.h
index 52579188d..de83e1b10 100644
--- a/src/fs/gnunet-service-fs.h
+++ b/src/fs/gnunet-service-fs.h
@@ -26,6 +26,13 @@
26#ifndef GNUNET_SERVICE_FS_H 26#ifndef GNUNET_SERVICE_FS_H
27#define GNUNET_SERVICE_FS_H 27#define GNUNET_SERVICE_FS_H
28 28
29#include "gnunet_util_lib.h"
30#include "gnunet_statistics_service.h"
31#include "gnunet_transport_service.h"
32#include "gnunet_core_service.h"
33#include "gnunet_block_lib.h"
34#include "fs.h"
35
29/** 36/**
30 * A connected peer. 37 * A connected peer.
31 */ 38 */
@@ -66,7 +73,30 @@ extern struct GNUNET_CORE_Handle *GSF_core;
66/** 73/**
67 * Handle for DHT operations. 74 * Handle for DHT operations.
68 */ 75 */
69static struct GNUNET_DHT_Handle *GSF_dht; 76extern struct GNUNET_DHT_Handle *GSF_dht;
77
78/**
79 * How long do requests typically stay in the routing table?
80 */
81extern struct GNUNET_LOAD_Value *GSF_rt_entry_lifetime;
82
83/**
84 * Typical priorities we're seeing from other peers right now. Since
85 * most priorities will be zero, this value is the weighted average of
86 * non-zero priorities seen "recently". In order to ensure that new
87 * values do not dramatically change the ratio, values are first
88 * "capped" to a reasonable range (+N of the current value) and then
89 * averaged into the existing value by a ratio of 1:N. Hence
90 * receiving the largest possible priority can still only raise our
91 * "current_priorities" by at most 1.
92 */
93extern double GSF_current_priorities;
94
95/**
96 * How many query messages have we received 'recently' that
97 * have not yet been claimed as cover traffic?
98 */
99extern unsigned int GSF_cover_query_count;
70 100
71 101
72 102