GNUnet  0.20.0
gnunet-service-dht_routing.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2011, 2022 GNUnet e.V.
4 
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
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
20 
26 #ifndef GNUNET_SERVICE_DHT_ROUTING_H
27 #define GNUNET_SERVICE_DHT_ROUTING_H
28 
29 #include "gnunet_util_lib.h"
30 #include "gnunet_block_lib.h"
31 #include "gnunet_dht_service.h"
32 
33 
46 void
48  const struct GNUNET_HashCode *query_hash,
49  unsigned int get_path_length,
50  const struct GNUNET_DHT_PathElement *get_path);
51 
52 
64 void
65 GDS_ROUTING_add (const struct GNUNET_PeerIdentity *sender,
67  struct GNUNET_BLOCK_Group *bg,
69  const struct GNUNET_HashCode *key,
70  const void *xquery,
71  size_t xquery_size);
72 
73 
77 void
78 GDS_ROUTING_init (void);
79 
80 
84 void
85 GDS_ROUTING_done (void);
86 
87 #endif
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
GNUNET_BLOCK_Type
WARNING: This header is generated! In order to add DHT block types, you must register them in GANA,...
struct GNUNET_HashCode key
The key used in the DHT.
void GDS_ROUTING_init(void)
Initialize routing subsystem.
void GDS_ROUTING_add(const struct GNUNET_PeerIdentity *sender, enum GNUNET_BLOCK_Type type, struct GNUNET_BLOCK_Group *bg, enum GNUNET_DHT_RouteOption options, const struct GNUNET_HashCode *key, const void *xquery, size_t xquery_size)
Add a new entry to our routing table.
void GDS_ROUTING_done(void)
Shutdown routing subsystem.
void GDS_ROUTING_process(const struct GNUNET_DATACACHE_Block *bd, const struct GNUNET_HashCode *query_hash, unsigned int get_path_length, const struct GNUNET_DHT_PathElement *get_path)
Handle a reply (route to origin).
Library for data block manipulation.
API to the DHT service.
GNUNET_DHT_RouteOption
Options for routing.
Block group data.
Information about a block stored in the datacache.
A (signed) path tracking a block's flow through the DHT is represented by an array of path elements,...
A 512-bit hashcode.
The identity of the host (wraps the signing key of the peer).
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model