mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
27 lines
689 B
C++
27 lines
689 B
C++
#ifndef LLARP_LINK_UTP_HPP
|
|
#define LLARP_LINK_UTP_HPP
|
|
|
|
#include <memory>
|
|
#include <link/server.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
struct Router;
|
|
|
|
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(llarp::Router* r);
|
|
} // namespace utp
|
|
} // namespace llarp
|
|
|
|
#endif
|