diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-01-30 19:22:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-01-30 19:22:23 +0000 |
commit | 6daf13eaa64b5b041edce219f30ab8dcfe38cdf5 (patch) | |
tree | c56e4517a0ee08cfb013e296b7d7cf33f2ab49d8 /src/include/gnunet_core_service.h | |
parent | 6fd0a7efde08115b568b99b7755861a50f1b6c2e (diff) | |
download | gnunet-6daf13eaa64b5b041edce219f30ab8dcfe38cdf5.tar.gz gnunet-6daf13eaa64b5b041edce219f30ab8dcfe38cdf5.zip |
-towards fixing #3295 (core traffic prioritization)
Diffstat (limited to 'src/include/gnunet_core_service.h')
-rw-r--r-- | src/include/gnunet_core_service.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index 6c68a6833..b0248323a 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h | |||
@@ -53,24 +53,25 @@ enum GNUNET_CORE_Priority | |||
53 | { | 53 | { |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * Highest priority, control traffic (i.e. NSE, Core/Mesh KX). | 56 | * Lowest priority, i.e. background traffic (i.e. fs) |
57 | */ | 57 | */ |
58 | GNUNET_CORE_PRIO_CRITICAL_CONTROL = 0, | 58 | GNUNET_CORE_PRIO_BACKGROUND = 0, |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * Urgent traffic (local peer, i.e. conversation). | 61 | * Normal traffic (i.e. mesh/dv relay, DHT) |
62 | */ | 62 | */ |
63 | GNUNET_CORE_PRIO_URGENT = 1, | 63 | GNUNET_CORE_PRIO_BEST_EFFORT = 1, |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Normal traffic (i.e. mesh/dv relay, DHT) | 66 | * Urgent traffic (local peer, i.e. conversation). |
67 | */ | 67 | */ |
68 | GNUNET_CORE_PRIO_BEST_EFFORT = 2, | 68 | GNUNET_CORE_PRIO_URGENT = 2, |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Background traffic (i.e. fs) | 71 | * Highest priority, control traffic (i.e. NSE, Core/Mesh KX). |
72 | */ | 72 | */ |
73 | GNUNET_CORE_PRIO_BACKGROUND = 3 | 73 | GNUNET_CORE_PRIO_CRITICAL_CONTROL = 3 |
74 | |||
74 | 75 | ||
75 | }; | 76 | }; |
76 | 77 | ||
@@ -250,7 +251,7 @@ struct GNUNET_CORE_TransmitHandle; | |||
250 | * @param handle connection to core service | 251 | * @param handle connection to core service |
251 | * @param cork is corking allowed for this transmission? | 252 | * @param cork is corking allowed for this transmission? |
252 | * @param priority how important is the message? | 253 | * @param priority how important is the message? |
253 | * @param maxdelay how long can the message wait? | 254 | * @param maxdelay how long can the message wait? Only effective if @a cork is #GNUNET_YES |
254 | * @param target who should receive the message, never NULL (can be this peer's identity for loopback) | 255 | * @param target who should receive the message, never NULL (can be this peer's identity for loopback) |
255 | * @param notify_size how many bytes of buffer space does notify want? | 256 | * @param notify_size how many bytes of buffer space does notify want? |
256 | * @param notify function to call when buffer space is available; | 257 | * @param notify function to call when buffer space is available; |