mirror of https://github.com/oxen-io/lokinet
Move UTP code to its own directory
parent
5ef4e18827
commit
17b39b0ed4
@ -1,26 +0,0 @@
|
||||
#ifndef LLARP_LINK_UTP_HPP
|
||||
#define LLARP_LINK_UTP_HPP
|
||||
|
||||
#include <memory>
|
||||
#include <link/server.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
struct AbstractRouter;
|
||||
|
||||
namespace utp
|
||||
{
|
||||
std::unique_ptr< ILinkLayer >
|
||||
NewServer(llarp::Crypto* crypto, const SecretKey& routerEncSecret,
|
||||
llarp::GetRCFunc getrc, llarp::LinkMessageHandler h,
|
||||
llarp::SessionEstablishedHandler est,
|
||||
llarp::SessionRenegotiateHandler reneg,
|
||||
llarp::SignBufferFunc sign, llarp::TimeoutHandler timeout,
|
||||
llarp::SessionClosedHandler closed);
|
||||
|
||||
std::unique_ptr< ILinkLayer >
|
||||
NewServerFromRouter(AbstractRouter* r);
|
||||
} // namespace utp
|
||||
} // namespace llarp
|
||||
|
||||
#endif
|
@ -1,4 +1,4 @@
|
||||
#include <link/utp_inbound_message.hpp>
|
||||
#include <utp/inbound_message.hpp>
|
||||
|
||||
#include <string.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef LLARP_LINK_UTP_INBOUND_MESSAGE_HPP
|
||||
#define LLARP_LINK_UTP_INBOUND_MESSAGE_HPP
|
||||
#ifndef LLARP_UTP_INBOUND_MESSAGE_HPP
|
||||
#define LLARP_UTP_INBOUND_MESSAGE_HPP
|
||||
|
||||
#include <constants/link_layer.hpp>
|
||||
#include <util/aligned.hpp>
|
@ -1,6 +1,6 @@
|
||||
#include <link/utp_linklayer.hpp>
|
||||
#include <utp/linklayer.hpp>
|
||||
|
||||
#include <link/utp_session.hpp>
|
||||
#include <utp/session.hpp>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <linux/errqueue.h>
|
@ -1,7 +1,7 @@
|
||||
#ifndef LLARP_LINK_UTP_LINKLAYER_HPP
|
||||
#define LLARP_LINK_UTP_LINKLAYER_HPP
|
||||
#ifndef LLARP_UTP_LINKLAYER_HPP
|
||||
#define LLARP_UTP_LINKLAYER_HPP
|
||||
|
||||
#include <link/utp_inbound_message.hpp>
|
||||
#include <utp/inbound_message.hpp>
|
||||
|
||||
#include <crypto/crypto.hpp>
|
||||
#include <crypto/types.hpp>
|
@ -1,6 +1,6 @@
|
||||
#include <link/utp_session.hpp>
|
||||
#include <utp/session.hpp>
|
||||
|
||||
#include <link/utp_linklayer.hpp>
|
||||
#include <utp/linklayer.hpp>
|
||||
#include <messages/discard.hpp>
|
||||
#include <messages/link_intro.hpp>
|
||||
#include <util/metrics.hpp>
|
@ -1,9 +1,9 @@
|
||||
#ifndef LLARP_LINK_UTP_SESSION_HPP
|
||||
#define LLARP_LINK_UTP_SESSION_HPP
|
||||
#ifndef LLARP_UTP_SESSION_HPP
|
||||
#define LLARP_UTP_SESSION_HPP
|
||||
|
||||
#include <crypto/crypto.hpp>
|
||||
#include <link/session.hpp>
|
||||
#include <link/utp_inbound_message.hpp>
|
||||
#include <utp/inbound_message.hpp>
|
||||
|
||||
#include <utp.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <link/utp.hpp>
|
||||
#include <utp/utp.hpp>
|
||||
|
||||
#include <link/utp_linklayer.hpp>
|
||||
#include <utp/linklayer.hpp>
|
||||
#include <router/abstractrouter.hpp>
|
||||
|
||||
namespace llarp
|
@ -0,0 +1,24 @@
|
||||
#ifndef LLARP_UTP_UTP_HPP
|
||||
#define LLARP_UTP_UTP_HPP
|
||||
|
||||
#include <memory>
|
||||
#include <link/server.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
struct AbstractRouter;
|
||||
|
||||
namespace utp
|
||||
{
|
||||
std::unique_ptr< ILinkLayer >
|
||||
NewServer(Crypto* crypto, const SecretKey& routerEncSecret, GetRCFunc getrc,
|
||||
LinkMessageHandler h, SessionEstablishedHandler est,
|
||||
SessionRenegotiateHandler reneg, SignBufferFunc sign,
|
||||
TimeoutHandler timeout, SessionClosedHandler closed);
|
||||
|
||||
std::unique_ptr< ILinkLayer >
|
||||
NewServerFromRouter(AbstractRouter* r);
|
||||
} // namespace utp
|
||||
} // namespace llarp
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue