aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_constants.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-26 22:13:01 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-26 22:13:01 +0000
commit64d3e46cfb99a711e500fa1f114e7c44bdf10040 (patch)
tree83093d92761d5c1b8b2fded713adaa19af29274c /src/include/gnunet_constants.h
parentef6f05f63769263a5201636c4b7f71eaa455cdf3 (diff)
downloadgnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.tar.gz
gnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.zip
-bugfixes, code cleanup
Diffstat (limited to 'src/include/gnunet_constants.h')
-rw-r--r--src/include/gnunet_constants.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h
index 93eec8ded..f10483424 100644
--- a/src/include/gnunet_constants.h
+++ b/src/include/gnunet_constants.h
@@ -52,30 +52,11 @@ extern "C"
52#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5) 52#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
53 53
54/** 54/**
55 * After how long do we consider a connection to a peer dead
56 * if we got an explicit disconnect and were unable to reconnect?
57 */
58#define GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3)
59
60/**
61 * How long do we delay reading more from a peer after a quota violation? 55 * How long do we delay reading more from a peer after a quota violation?
62 */ 56 */
63#define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2) 57#define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2)
64 58
65/** 59/**
66 * How long do we wait after a FORK+EXEC before testing for the
67 * resulting process to be up (port open, waitpid, etc.)?
68 */
69#define GNUNET_CONSTANTS_EXEC_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 200)
70
71/**
72 * After how long do we retry a service connection that was
73 * unavailable? Used in cases where an exponential back-off
74 * seems inappropriate.
75 */
76#define GNUNET_CONSTANTS_SERVICE_RETRY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 500)
77
78/**
79 * After how long do we consider a service unresponsive 60 * After how long do we consider a service unresponsive
80 * even if we assume that the service commonly does not 61 * even if we assume that the service commonly does not
81 * respond instantly (DNS, Database, etc.). 62 * respond instantly (DNS, Database, etc.).
@@ -119,18 +100,6 @@ extern "C"
119#define GNUNET_CONSTANTS_CORE_SIZE_ENCRYPTED_MESSAGE (24 + sizeof (struct GNUNET_HashCode)) 100#define GNUNET_CONSTANTS_CORE_SIZE_ENCRYPTED_MESSAGE (24 + sizeof (struct GNUNET_HashCode))
120 101
121/** 102/**
122 * Size of the 'struct OutboundMessage' of the transport
123 * (which, in combination with the
124 * GNUNET_CONSTANTS_CORE_SIZE_ENCRYPTED_MESSAGE) defines
125 * the headers that must be pre-pendable to all GNUnet
126 * messages. Taking GNUNET_SERVER_MAX_MESSAGE_SIZE
127 * and subtracting these two constants defines the largest
128 * message core can handle.
129 */
130#define GNUNET_CONSTANTS_TRANSPORT_SIZE_OUTBOUND_MESSAGE (16 + sizeof (struct GNUNET_PeerIdentity))
131
132
133/**
134 * What is the maximum size for encrypted messages? Note that this 103 * What is the maximum size for encrypted messages? Note that this
135 * number imposes a clear limit on the maximum size of any message. 104 * number imposes a clear limit on the maximum size of any message.
136 * Set to a value close to 64k but not so close that transports will 105 * Set to a value close to 64k but not so close that transports will