diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-03-18 16:41:57 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-03-18 16:41:57 +0000 |
commit | 1d436d8516c2968ce4f36e2f15859075be58f779 (patch) | |
tree | 5395d42f77d8b61de6161ca02cbcadd5a8d1ddb8 /src/transport/transport.h | |
parent | 9239434df21c273fecff72b921e457589fa62c95 (diff) | |
download | gnunet-1d436d8516c2968ce4f36e2f15859075be58f779.tar.gz gnunet-1d436d8516c2968ce4f36e2f15859075be58f779.zip |
unix domains sockets are now preferred
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index 00af17cab..dc9e7ce58 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -30,6 +30,27 @@ | |||
30 | #include "gnunet_time_lib.h" | 30 | #include "gnunet_time_lib.h" |
31 | #include "gnunet_transport_service.h" | 31 | #include "gnunet_transport_service.h" |
32 | 32 | ||
33 | /* Minimum time between to calculations*/ | ||
34 | #define ATS_MIN_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS,250) | ||
35 | #define ATS_EXEC_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS,1) | ||
36 | |||
37 | #define DEBUG_ATS GNUNET_NO | ||
38 | |||
39 | struct ATS_info | ||
40 | { | ||
41 | struct GNUNET_CONTAINER_MultiHashMap * peers; | ||
42 | struct GNUNET_TIME_Absolute last; | ||
43 | struct GNUNET_TIME_Relative min_delta; | ||
44 | struct GNUNET_TIME_Relative reg_delta; | ||
45 | |||
46 | GNUNET_SCHEDULER_TaskIdentifier ats_task; | ||
47 | }; | ||
48 | |||
49 | struct ATS_peer | ||
50 | { | ||
51 | struct GNUNET_PeerIdentity peer; | ||
52 | }; | ||
53 | |||
33 | #define DEBUG_TRANSPORT GNUNET_NO | 54 | #define DEBUG_TRANSPORT GNUNET_NO |
34 | #define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO | 55 | #define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO |
35 | #define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO | 56 | #define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO |