lokinet/llarp/link/utp.hpp

27 lines
689 B
C++
Raw Normal View History

#ifndef LLARP_LINK_UTP_HPP
#define LLARP_LINK_UTP_HPP
2018-12-12 01:32:10 +00:00
#include <memory>
#include <link/server.hpp>
namespace llarp
{
2018-12-12 01:32:10 +00:00
struct Router;
namespace utp
{
std::unique_ptr< ILinkLayer >
2019-01-05 13:45:05 +00:00
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(llarp::Router* r);
} // namespace utp
} // namespace llarp
#endif