mirror of https://github.com/oxen-io/lokinet
Move dht* to llarp/
This commit is contained in:
parent
451bbedfaf
commit
fddc8734d2
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_H_
|
||||
#define LLARP_H_
|
||||
#include <llarp/dht.h>
|
||||
#include <dht.h>
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/logic.hpp>
|
||||
#include <llarp/mem.h>
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <llarp/dht/messages/all.hpp>
|
||||
#include <llarp/dht/node.hpp>
|
|
@ -1,8 +0,0 @@
|
|||
#ifndef LLARP_DHT_MESSAGES_ALL_HPP
|
||||
#define LLARP_DHT_MESSAGES_ALL_HPP
|
||||
#include <llarp/dht/messages/findintro.hpp>
|
||||
#include <llarp/dht/messages/findrouter.hpp>
|
||||
#include <llarp/dht/messages/gotintro.hpp>
|
||||
#include <llarp/dht/messages/gotrouter.hpp>
|
||||
#include <llarp/dht/messages/pubintro.hpp>
|
||||
#endif
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_MESSAGES_DHT_HPP
|
||||
#define LLARP_MESSAGES_DHT_HPP
|
||||
#include <llarp/dht.hpp>
|
||||
#include <dht.hpp>
|
||||
#include <llarp/routing/message.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_MESSAGES_DHT_IMMEDIATE_HPP
|
||||
#define LLARP_MESSAGES_DHT_IMMEDIATE_HPP
|
||||
#include <llarp/dht.hpp>
|
||||
#include <dht.hpp>
|
||||
#include <llarp/link_message.hpp>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
#ifndef LLARP_PATH_HPP
|
||||
#define LLARP_PATH_HPP
|
||||
#include <llarp/time.hpp>
|
||||
#include <llarp/aligned.hpp>
|
||||
#include <crypto.hpp>
|
||||
#include <llarp/dht.hpp>
|
||||
#include <dht.hpp>
|
||||
#include <llarp/aligned.hpp>
|
||||
#include <llarp/messages/relay.hpp>
|
||||
#include <llarp/messages/relay_commit.hpp>
|
||||
#include <llarp/path_types.hpp>
|
||||
#include <llarp/pathset.hpp>
|
||||
#include <llarp/pathbuilder.hpp>
|
||||
#include <llarp/pathset.hpp>
|
||||
#include <llarp/router_id.hpp>
|
||||
#include <llarp/routing/handler.hpp>
|
||||
#include <llarp/routing/message.hpp>
|
||||
#include <llarp/service/Intro.hpp>
|
||||
#include <llarp/threading.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
|
||||
#include <functional>
|
||||
#include <list>
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
#ifndef LLARP_PATHSET_HPP
|
||||
#define LLARP_PATHSET_HPP
|
||||
|
||||
#include <llarp/time.hpp>
|
||||
#include <functional>
|
||||
#include <list>
|
||||
#include <dht/messages/all.hpp>
|
||||
#include <llarp/path_types.hpp>
|
||||
#include <llarp/router_id.hpp>
|
||||
#include <llarp/routing/message.hpp>
|
||||
#include <llarp/service/IntroSet.hpp>
|
||||
#include <llarp/service/lookup.hpp>
|
||||
#include <llarp/dht/messages/all.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
|
||||
#include <functional>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <tuple>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef LLARP_ROUTING_HANDLER_HPP
|
||||
#define LLARP_ROUTING_HANDLER_HPP
|
||||
|
||||
#include <dht.hpp>
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/dht.hpp>
|
||||
|
||||
#include <llarp/messages/path_confirm.hpp>
|
||||
#include <llarp/messages/path_latency.hpp>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef LLARP_SERVICE_ADDRESS_HPP
|
||||
#define LLARP_SERVICE_ADDRESS_HPP
|
||||
#include <llarp/aligned.hpp>
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <dht/key.hpp>
|
||||
#include <llarp/router_id.hpp>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <llarp/bencode.hpp>
|
||||
#include <crypto.hpp>
|
||||
#include <llarp/encrypted.hpp>
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <dht/message.hpp>
|
||||
#include <llarp/routing/message.hpp>
|
||||
#include <llarp/service/Identity.hpp>
|
||||
#include <llarp/service/Info.hpp>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <sodium/crypto_generichash.h>
|
||||
#include <llarp/aligned.hpp>
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <dht/key.hpp>
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/dht.h>
|
||||
#include <llarp/dht/context.hpp>
|
||||
#include <dht.h>
|
||||
#include <dht/context.hpp>
|
||||
#include "router_contact.hpp"
|
||||
|
||||
llarp_dht_context::llarp_dht_context(llarp::Router *router)
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#include <dht/context.hpp>
|
||||
#include <dht/key.hpp>
|
||||
#include <dht/message.hpp>
|
||||
#include <dht/messages/all.hpp>
|
||||
#include <dht/node.hpp>
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef LLARP_DHT_BUCKET_HPP
|
||||
#define LLARP_DHT_BUCKET_HPP
|
||||
|
||||
#include <llarp/dht/kademlia.hpp>
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <dht/kademlia.hpp>
|
||||
#include <dht/key.hpp>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <vector>
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/messages/gotrouter.hpp>
|
||||
#include <dht/context.hpp>
|
||||
#include <dht/messages/gotrouter.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
#include <llarp/messages/dht_immediate.hpp>
|
||||
#include "router.hpp"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#ifndef LLARP_DHT_CONTEXT_HPP
|
||||
#define LLARP_DHT_CONTEXT_HPP
|
||||
|
||||
#include <llarp/dht.h>
|
||||
#include <llarp/dht/bucket.hpp>
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <llarp/dht/messages/findintro.hpp>
|
||||
#include <llarp/dht/node.hpp>
|
||||
#include <dht.h>
|
||||
#include <dht/bucket.hpp>
|
||||
#include <dht/key.hpp>
|
||||
#include <dht/message.hpp>
|
||||
#include <dht/messages/findintro.hpp>
|
||||
#include <dht/node.hpp>
|
||||
#include <llarp/service/IntroSet.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/messages/all.hpp>
|
||||
#include <dht/context.hpp>
|
||||
#include <dht/messages/all.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/messages/findintro.hpp>
|
||||
#include <llarp/dht/messages/gotintro.hpp>
|
||||
#include <dht/context.hpp>
|
||||
#include <dht/messages/findintro.hpp>
|
||||
#include <dht/messages/gotintro.hpp>
|
||||
#include <llarp/routing/message.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/messages/findrouter.hpp>
|
||||
#include <llarp/dht/messages/gotrouter.hpp>
|
||||
#include <dht/context.hpp>
|
||||
#include <dht/messages/findrouter.hpp>
|
||||
#include <dht/messages/gotrouter.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
|
||||
#include <router.hpp>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/messages/gotintro.hpp>
|
||||
#include <dht/context.hpp>
|
||||
#include <dht/messages/gotintro.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
|
||||
#include <router.hpp>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/messages/gotrouter.hpp>
|
||||
#include <dht/context.hpp>
|
||||
#include <dht/messages/gotrouter.hpp>
|
||||
|
||||
#include <router.hpp>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef LLARP_DHT_KADEMLIA_HPP
|
||||
#define LLARP_DHT_KADEMLIA_HPP
|
||||
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <dht/key.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef LLARP_DHT_MESSAGE_HPP
|
||||
#define LLARP_DHT_MESSAGE_HPP
|
||||
|
||||
#include <llarp/dht.h>
|
||||
#include <dht.h>
|
||||
#include <dht/key.hpp>
|
||||
#include <llarp/bencode.hpp>
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <llarp/path_types.hpp>
|
||||
#include <vector>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef LLARP_DHT_MESSAGES_ALL_HPP
|
||||
#define LLARP_DHT_MESSAGES_ALL_HPP
|
||||
#include <dht/messages/findintro.hpp>
|
||||
#include <dht/messages/findrouter.hpp>
|
||||
#include <dht/messages/gotintro.hpp>
|
||||
#include <dht/messages/gotrouter.hpp>
|
||||
#include <dht/messages/pubintro.hpp>
|
||||
#endif
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_DHT_MESSAGES_FIND_INTRO_HPP
|
||||
#define LLARP_DHT_MESSAGES_FIND_INTRO_HPP
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <dht/message.hpp>
|
||||
#include <llarp/routing/message.hpp>
|
||||
#include <llarp/service/address.hpp>
|
||||
#include <llarp/service/tag.hpp>
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_DHT_MESSAGES_FIND_ROUTER_HPP
|
||||
#define LLARP_DHT_MESSAGES_FIND_ROUTER_HPP
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <dht/message.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_DHT_MESSAGES_GOT_INTRO_HPP
|
||||
#define LLARP_DHT_MESSAGES_GOT_INTRO_HPP
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <dht/message.hpp>
|
||||
#include <llarp/service/IntroSet.hpp>
|
||||
#include <vector>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_DHT_MESSAGES_GOT_ROUTER_HPP
|
||||
#define LLARP_DHT_MESSAGES_GOT_ROUTER_HPP
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <dht/message.hpp>
|
||||
#include <llarp/router_contact.hpp>
|
||||
|
||||
namespace llarp
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_DHT_MESSAGES_PUB_INTRO_HPP
|
||||
#define LLARP_DHT_MESSAGES_PUB_INTRO_HPP
|
||||
#include <llarp/dht/message.hpp>
|
||||
#include <dht/message.hpp>
|
||||
#include <llarp/service/IntroSet.hpp>
|
||||
#include <vector>
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef LLARP_DHT_NODE_HPP
|
||||
#define LLARP_DHT_NODE_HPP
|
||||
|
||||
#include <dht/key.hpp>
|
||||
#include <llarp/router_contact.hpp>
|
||||
#include <llarp/dht/key.hpp>
|
||||
#include <llarp/service/IntroSet.hpp>
|
||||
|
||||
namespace llarp
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/dht/context.hpp>
|
||||
#include <llarp/dht/messages/pubintro.hpp>
|
||||
#include <dht/context.hpp>
|
||||
#include <dht/messages/pubintro.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
#include <llarp/messages/dht_immediate.hpp>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/dht/messages/pubintro.hpp>
|
||||
#include <dht/messages/pubintro.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
#include <llarp/path.hpp>
|
||||
#include <llarp/pathset.hpp>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/config.h>
|
||||
#include <llarp/dht.h>
|
||||
#include <llarp/dht.hpp>
|
||||
#include <dht.h>
|
||||
#include <dht.hpp>
|
||||
#include <llarp/establish_job.hpp>
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/exit.hpp>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
#include <llarp/dht/messages/findintro.hpp>
|
||||
#include <dht/messages/findintro.hpp>
|
||||
#include <llarp/logic.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
#include <llarp/service/endpoint.hpp>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <gtest/gtest.h>
|
||||
#include <llarp/dht.hpp>
|
||||
#include <dht.hpp>
|
||||
|
||||
using Key_t = llarp::dht::Key_t;
|
||||
|
||||
|
|
Loading…
Reference in New Issue