aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-04-01 14:32:02 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-04-01 14:32:02 +0000
commit27dc5d0c078bd11124f79d8d4bf265b7c0341d16 (patch)
tree8fc28eb692512e991bc73a067e7a2bda62f0d889 /src/transport/transport.h
parentf92658deef5b2c407ebf6047423811a0aa2e44e7 (diff)
downloadgnunet-27dc5d0c078bd11124f79d8d4bf265b7c0341d16.tar.gz
gnunet-27dc5d0c078bd11124f79d8d4bf265b7c0341d16.zip
starting to import ressource costs
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r--src/transport/transport.h31
1 files changed, 2 insertions, 29 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h
index f3e3b1c2c..4eb14c851 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -31,38 +31,11 @@
31#include "gnunet_transport_service.h" 31#include "gnunet_transport_service.h"
32 32
33/* Minimum time between to calculations*/ 33/* Minimum time between to calculations*/
34#define ATS_MIN_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 1) 34#define ATS_MIN_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 1000)
35#define ATS_EXEC_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 2) 35#define ATS_EXEC_INTERVAL GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 1500)
36#define ATS_MAX_EXEC_DURATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 100) 36#define ATS_MAX_EXEC_DURATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 100)
37#define ATS_MAX_ITERATIONS INT_MAX 37#define ATS_MAX_ITERATIONS INT_MAX
38 38
39struct ATS_info
40{
41 struct GNUNET_CONTAINER_MultiHashMap * peers;
42 /**
43 * Time of last execution
44 */
45 struct GNUNET_TIME_Absolute last;
46 /**
47 * Minimum intervall between two executions
48 */
49 struct GNUNET_TIME_Relative min_delta;
50 /**
51 * Regular intervall when execution is triggered
52 */
53 struct GNUNET_TIME_Relative exec_intervall;
54 /**
55 * Maximum execution time per calculation
56 */
57 struct GNUNET_TIME_Relative max_exec_duration;
58 /**
59 * Maximum number of LP iterations per calculation
60 */
61 int max_iterations;
62
63 GNUNET_SCHEDULER_TaskIdentifier ats_task;
64};
65
66#define DEBUG_TRANSPORT GNUNET_NO 39#define DEBUG_TRANSPORT GNUNET_NO
67#define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO 40#define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO
68#define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO 41#define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO