summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet-new_channel.c4
-rw-r--r--src/cadet/gnunet-service-cadet-new_peer.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c
index 92ab61543..5acd098b6 100644
--- a/src/cadet/gnunet-service-cadet-new_channel.c
+++ b/src/cadet/gnunet-service-cadet-new_channel.c
@@ -24,6 +24,10 @@
24 * @brief logical links between CADET clients 24 * @brief logical links between CADET clients
25 * @author Bartlomiej Polot 25 * @author Bartlomiej Polot
26 * @author Christian Grothoff 26 * @author Christian Grothoff
27 *
28 * TODO:
29 * - estimate max bandwidth using bursts and use to optimize
30 * transmission rate(s)
27 */ 31 */
28 32
29#include "platform.h" 33#include "platform.h"
diff --git a/src/cadet/gnunet-service-cadet-new_peer.c b/src/cadet/gnunet-service-cadet-new_peer.c
index 5b978ff77..47f725e09 100644
--- a/src/cadet/gnunet-service-cadet-new_peer.c
+++ b/src/cadet/gnunet-service-cadet-new_peer.c
@@ -24,6 +24,14 @@
24 * @brief Information we track per peer. 24 * @brief Information we track per peer.
25 * @author Bartlomiej Polot 25 * @author Bartlomiej Polot
26 * @author Christian Grothoff 26 * @author Christian Grothoff
27 *
28 * TODO:
29 * - implement GCP_set_hello() / do HELLO advertising properly
30 * - optimize stopping/restarting DHT search to situations
31 * where we actually need it (i.e. not if we have a direct connection,
32 * or if we already have plenty of good short ones, or maybe even
33 * to take a break if we have some connections and have searched a lot (?))
34 * - optimize MQM ready scans (O(n) -> O(1))
27 */ 35 */
28#include "platform.h" 36#include "platform.h"
29#include "gnunet_util_lib.h" 37#include "gnunet_util_lib.h"
@@ -195,6 +203,10 @@ struct CadetPeer
195 203
196 /** 204 /**
197 * Number of message queue managers of this peer that have a message in waiting. 205 * Number of message queue managers of this peer that have a message in waiting.
206 *
207 * Used to quickly see if we need to bother scanning the @e msm_head DLL.
208 * TODO: could be replaced by another DLL that would then allow us to avoid
209 * the O(n)-scan of the DLL for ready entries!
198 */ 210 */
199 unsigned int mqm_ready_counter; 211 unsigned int mqm_ready_counter;
200 212