diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-02 20:24:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-02 20:24:02 +0100 |
commit | e3ff017054eb35dedd95ae4fe66c82b88e3bbdc3 (patch) | |
tree | abb821d63f09d0982d6f6802ec1c55234dcc0f5c /src/dht/gnunet-service-dht_routing.h | |
parent | 329f0458fa1fce45ce1c31e86771ffefb22e941e (diff) | |
download | gnunet-e3ff017054eb35dedd95ae4fe66c82b88e3bbdc3.tar.gz gnunet-e3ff017054eb35dedd95ae4fe66c82b88e3bbdc3.zip |
-non-trivial refactoring/cleanup of the DHT code
Diffstat (limited to 'src/dht/gnunet-service-dht_routing.h')
-rw-r--r-- | src/dht/gnunet-service-dht_routing.h | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/src/dht/gnunet-service-dht_routing.h b/src/dht/gnunet-service-dht_routing.h index 7fea01bae..1a1514cc5 100644 --- a/src/dht/gnunet-service-dht_routing.h +++ b/src/dht/gnunet-service-dht_routing.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2011 GNUnet e.V. | 3 | Copyright (C) 2011, 2022 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -35,29 +35,19 @@ | |||
35 | * Handle a reply (route to origin). Only forwards the reply back to | 35 | * Handle a reply (route to origin). Only forwards the reply back to |
36 | * other peers waiting for it. Does not do local caching or | 36 | * other peers waiting for it. Does not do local caching or |
37 | * forwarding to local clients. Essentially calls | 37 | * forwarding to local clients. Essentially calls |
38 | * #GDS_NEIGHBOURS_handle_reply() for all peers that sent us a matching | 38 | * GDS_NEIGHBOURS_handle_reply() for all peers that sent us a matching |
39 | * request recently. | 39 | * request recently. |
40 | * | 40 | * |
41 | * @param type type of the block | 41 | * @param bd block details |
42 | * @param expiration_time when does the content expire | 42 | * @param query_hash query used in the inquiry |
43 | * @param key key for the content | ||
44 | * @param put_path_length number of entries in @a put_path | ||
45 | * @param put_path peers the original PUT traversed (if tracked) | ||
46 | * @param get_path_length number of entries in @a get_path | 43 | * @param get_path_length number of entries in @a get_path |
47 | * @param get_path peers this reply has traversed so far (if tracked) | 44 | * @param get_path peers this reply has traversed so far (if tracked) |
48 | * @param data payload of the reply | ||
49 | * @param data_size number of bytes in @a data | ||
50 | */ | 45 | */ |
51 | void | 46 | void |
52 | GDS_ROUTING_process (enum GNUNET_BLOCK_Type type, | 47 | GDS_ROUTING_process (const struct GDS_DATACACHE_BlockData *bd, |
53 | struct GNUNET_TIME_Absolute expiration_time, | 48 | const struct GNUNET_HashCode *query_hash, |
54 | const struct GNUNET_HashCode *key, | ||
55 | unsigned int put_path_length, | ||
56 | const struct GNUNET_PeerIdentity *put_path, | ||
57 | unsigned int get_path_length, | 49 | unsigned int get_path_length, |
58 | const struct GNUNET_PeerIdentity *get_path, | 50 | const struct GNUNET_PeerIdentity *get_path); |
59 | const void *data, | ||
60 | size_t data_size); | ||
61 | 51 | ||
62 | 52 | ||
63 | /** | 53 | /** |