From b639bad2d21950113df49088c686b359979a0189 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 14 Apr 2014 13:03:32 +0000 Subject: -comments for surpiti --- src/dht/gnunet-service-xdht_neighbours.h | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'src/dht') diff --git a/src/dht/gnunet-service-xdht_neighbours.h b/src/dht/gnunet-service-xdht_neighbours.h index a1d896bc4..9ca2906ea 100644 --- a/src/dht/gnunet-service-xdht_neighbours.h +++ b/src/dht/gnunet-service-xdht_neighbours.h @@ -36,11 +36,31 @@ * Field in trail setup message to understand if the message is sent to an * intermediate finger, friend or me. */ -enum current_destination_type +enum current_destination_type /* FIXME: enum GSX_CurrentDestinationType */ { - FRIEND , - FINGER , - MY_ID , + /** + * Look in friend AND finger tables for a trail to the key. + */ + /* FIXME: GSX_CDT_ */ FRIEND, + + /** + * Look in the routing table to follow a trail to reach to the + * destination. It is also allowed (but currently not implemented) + * to look into friend/finger tables for a better trail to the key + * and (if one is found) 'abort' the current trail and switch to + * the better one. + */ + FINGER, + + /** + * "Returned" if the origin is the closest peer to the destination; + * Must not be passed to "GDS_NEIGHBOURS_handle_put". + */ + MY_ID, + + /** + * FIXME. + */ VALUE }; @@ -179,4 +199,4 @@ struct GNUNET_PeerIdentity * GDS_NEIGHBOURS_get_id (); -#endif \ No newline at end of file +#endif -- cgit v1.2.3