aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_connectivity.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-08 22:58:14 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-08 22:58:14 +0000
commit47435b4bc0f217b7b13b8e6fd513b3029cffd8c8 (patch)
treeec05a7ff1b75898238484e4a567a73fccf9524fb /src/ats/gnunet-service-ats_connectivity.c
parent03a39827ef721653ad9509ce12173bd674592caf (diff)
downloadgnunet-47435b4bc0f217b7b13b8e6fd513b3029cffd8c8.tar.gz
gnunet-47435b4bc0f217b7b13b8e6fd513b3029cffd8c8.zip
-fin, mention future work in TODO
Diffstat (limited to 'src/ats/gnunet-service-ats_connectivity.c')
-rw-r--r--src/ats/gnunet-service-ats_connectivity.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_connectivity.c b/src/ats/gnunet-service-ats_connectivity.c
index 3546f72dc..1ced117ca 100644
--- a/src/ats/gnunet-service-ats_connectivity.c
+++ b/src/ats/gnunet-service-ats_connectivity.c
@@ -41,6 +41,8 @@ struct ConnectionRequest
41 * Client that made the request. 41 * Client that made the request.
42 */ 42 */
43 struct GNUNET_SERVER_Client *client; 43 struct GNUNET_SERVER_Client *client;
44
45 /* TODO: allow client to express a 'strength' for this request */
44}; 46};
45 47
46 48
@@ -62,6 +64,7 @@ unsigned int
62GAS_connectivity_has_peer (void *cls, 64GAS_connectivity_has_peer (void *cls,
63 const struct GNUNET_PeerIdentity *peer) 65 const struct GNUNET_PeerIdentity *peer)
64{ 66{
67 /* TODO: return sum of 'strength's of connectivity requests */
65 return GNUNET_CONTAINER_multipeermap_contains (connection_requests, 68 return GNUNET_CONTAINER_multipeermap_contains (connection_requests,
66 peer); 69 peer);
67} 70}