aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.h')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.h b/src/dht/gnunet-service-dht_neighbours.h
index ba7cc6055..28468c740 100644
--- a/src/dht/gnunet-service-dht_neighbours.h
+++ b/src/dht/gnunet-service-dht_neighbours.h
@@ -38,6 +38,18 @@
38extern struct GNUNET_HashCode my_identity_hash; 38extern struct GNUNET_HashCode my_identity_hash;
39 39
40 40
41struct PeerInfo;
42
43/**
44 * Lookup peer by peer's identity.
45 *
46 * @param target peer to look up
47 * @return NULL if we are not connected to @a target
48 */
49struct PeerInfo *
50GDS_NEIGHBOURS_lookup_peer (const struct GNUNET_PeerIdentity *target);
51
52
41/** 53/**
42 * Perform a PUT operation. Forwards the given request to other 54 * Perform a PUT operation. Forwards the given request to other
43 * peers. Does not store the data locally. Does not give the 55 * peers. Does not store the data locally. Does not give the
@@ -94,7 +106,7 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type,
94 * other peers waiting for it. Does not do local caching or 106 * other peers waiting for it. Does not do local caching or
95 * forwarding to local clients. 107 * forwarding to local clients.
96 * 108 *
97 * @param target neighbour that should receive the block (if still connected) 109 * @param pi neighbour that should receive the block
98 * @param type type of the block 110 * @param type type of the block
99 * @param bd details about the reply 111 * @param bd details about the reply
100 * @param query_hash query that was used for the request 112 * @param query_hash query that was used for the request
@@ -102,7 +114,7 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type,
102 * @param get_path peers this reply has traversed so far (if tracked) 114 * @param get_path peers this reply has traversed so far (if tracked)
103 */ 115 */
104void 116void
105GDS_NEIGHBOURS_handle_reply (const struct GNUNET_PeerIdentity *target, 117GDS_NEIGHBOURS_handle_reply (struct PeerInfo *pi,
106 const struct GDS_DATACACHE_BlockData *bd, 118 const struct GDS_DATACACHE_BlockData *bd,
107 const struct GNUNET_HashCode *query_hash, 119 const struct GNUNET_HashCode *query_hash,
108 unsigned int get_path_length, 120 unsigned int get_path_length,