Move link* to llarp/

pull/137/head
Michael 6 years ago
parent 7a52638add
commit c0a76714fa
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -1,7 +0,0 @@
#ifndef LLARP_LINK_LAYER_HPP
#define LLARP_LINK_LAYER_HPP
#include <llarp/link/server.hpp>
#include <llarp/link/session.hpp>
constexpr size_t MAX_LINK_MSG_SIZE = 8192;
constexpr llarp_time_t DefaultLinkSessionLifetime = 10 * 1000;
#endif

@ -1,7 +1,8 @@
#ifndef LLARP_MESSAGES_DHT_IMMEDIATE_HPP
#define LLARP_MESSAGES_DHT_IMMEDIATE_HPP
#include <dht.hpp>
#include <llarp/link_message.hpp>
#include <link_message.hpp>
#include <vector>
namespace llarp

@ -1,6 +1,6 @@
#ifndef LLARP_MESSAGES_DISCARD_HPP
#define LLARP_MESSAGES_DISCARD_HPP
#include <llarp/link_message.hpp>
#include <link_message.hpp>
#include <llarp/routing/message.hpp>
#include <llarp/bencode.hpp>
#include <llarp/routing/handler.hpp>

@ -1,6 +1,6 @@
#ifndef LLARP_MESSAGES_LINK_INTRO_HPP
#define LLARP_MESSAGES_LINK_INTRO_HPP
#include <llarp/link_message.hpp>
#include <link_message.hpp>
#include <llarp/router_contact.hpp>
namespace llarp
{

@ -1,10 +1,11 @@
#ifndef LLARP_MESSAGES_RELAY_HPP
#define LLARP_MESSAGES_RELAY_HPP
#include <llarp/link_message.hpp>
#include <crypto.hpp>
#include <link_message.hpp>
#include <llarp/encrypted.hpp>
#include <llarp/path_types.hpp>
#include <vector>
namespace llarp

@ -1,11 +1,12 @@
#ifndef LLARP_RELAY_COMMIT_HPP
#define LLARP_RELAY_COMMIT_HPP
#include <crypto.hpp>
#include <link_message.hpp>
#include <llarp/encrypted_ack.hpp>
#include <llarp/encrypted_frame.hpp>
#include <llarp/link_message.hpp>
#include <llarp/path_types.hpp>
#include <llarp/pow.hpp>
#include <array>
namespace llarp

@ -1,6 +1,6 @@
#include <link_layer.hpp>
#include <llarp/messages/exit.hpp>
#include <llarp/routing/handler.hpp>
#include <llarp/link_layer.hpp>
namespace llarp
{

@ -1,4 +1,5 @@
#include <llarp/link/curvecp.hpp>
#include <link/curvecp.hpp>
#include <link/server.hpp>
#include <llarp/messages/link_intro.hpp>
namespace llarp

@ -1,10 +1,13 @@
#ifndef LLARP_LINK_CURVECP_HPP
#define LLARP_LINK_CURVECP_HPP
#include <llarp/link_layer.hpp>
#include <memory>
namespace llarp
{
struct ILinkLayer;
struct Router;
namespace curvecp
{
std::unique_ptr< ILinkLayer >

@ -1,5 +1,5 @@
#include <llarp/link/server.hpp>
#include "fs.hpp"
#include <fs.hpp>
#include <link/server.hpp>
namespace llarp
{

@ -1,14 +1,15 @@
#ifndef LLARP_LINK_SERVER_HPP
#define LLARP_LINK_SERVER_HPP
#include <unordered_map>
#include <llarp/threading.hpp>
#include <llarp/router_contact.hpp>
#include <crypto.hpp>
#include <llarp/net.hpp>
#include <link/session.hpp>
#include <llarp/ev.h>
#include <llarp/link/session.hpp>
#include <llarp/logic.hpp>
#include <llarp/net.hpp>
#include <llarp/router_contact.hpp>
#include <llarp/threading.hpp>
#include <list>
#include <unordered_map>
namespace llarp
{

@ -1,6 +1,7 @@
#include <buffer.hpp>
#include <link/server.hpp>
#include <link/utp.hpp>
#include <llarp/endian.hpp>
#include <llarp/link/utp.hpp>
#include <llarp/messages/discard.hpp>
#include <llarp/messages/link_intro.hpp>
#include <router.hpp>

@ -1,10 +1,13 @@
#ifndef LLARP_LINK_UTP_HPP
#define LLARP_LINK_UTP_HPP
#include <llarp/link_layer.hpp>
#include <memory>
namespace llarp
{
struct ILinkLayer;
struct Router;
namespace utp
{
std::unique_ptr< ILinkLayer >

@ -0,0 +1,9 @@
#ifndef LLARP_LINK_LAYER_HPP
#define LLARP_LINK_LAYER_HPP
#include <llarp/types.hpp>
#include <stdlib.h>
constexpr size_t MAX_LINK_MSG_SIZE = 8192;
constexpr llarp_time_t DefaultLinkSessionLifetime = 10 * 1000;
#endif

@ -1,9 +1,9 @@
#ifndef LLARP_LINK_MESSAGE_HPP
#define LLARP_LINK_MESSAGE_HPP
#include <link/session.hpp>
#include <llarp/bencode.hpp>
#include <llarp/router_id.hpp>
#include <llarp/link/session.hpp>
#include <queue>
#include <vector>

@ -1,15 +1,15 @@
#include <llarp/proto.hpp>
#include <buffer.hpp>
#include <encode.hpp>
#include <link/server.hpp>
#include <link/utp.hpp>
#include <link_message.hpp>
#include <llarp/iwp.hpp>
#include <llarp/link_message.hpp>
#include <llarp/link/utp.hpp>
#include <llarp/net.hpp>
#include <llarp/proto.hpp>
#include <llarp/rpc.hpp>
#include "buffer.hpp"
#include "encode.hpp"
#include "llarp/net.hpp"
#include "logger.hpp"
#include "router.hpp"
#include "str.hpp"
#include <logger.hpp>
#include <router.hpp>
#include <str.hpp>
#include <fstream>
#include <cstdlib>

@ -7,12 +7,12 @@
#include <exit.hpp>
#include <fs.hpp>
#include <handlers/tun.hpp>
#include <link_layer.hpp>
#include <link_message.hpp>
#include <llarp/buffer.h>
#include <llarp/config.h>
#include <llarp/establish_job.hpp>
#include <llarp/ev.h>
#include <llarp/link_layer.hpp>
#include <llarp/link_message.hpp>
#include <llarp/logic.hpp>
#include <llarp/nodedb.hpp>
#include <llarp/path.hpp>

Loading…
Cancel
Save