mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
27 lines
698 B
C++
27 lines
698 B
C++
#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
|