diff options
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 |