* Client that made the request.
*/
struct GNUNET_SERVER_Client *client;
+
+ /* TODO: allow client to express a 'strength' for this request */
};
GAS_connectivity_has_peer (void *cls,
const struct GNUNET_PeerIdentity *peer)
{
+ if (NULL == connection_requests)
+ return 0;
+ /* TODO: return sum of 'strength's of connectivity requests */
return GNUNET_CONTAINER_multipeermap_contains (connection_requests,
peer);
}
&free_request,
NULL);
GNUNET_CONTAINER_multipeermap_destroy (connection_requests);
+ connection_requests = NULL;
}