lokinet/llarp/link/utp.hpp

27 lines
698 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
{
struct AbstractRouter;
2018-12-12 01:32:10 +00:00
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(AbstractRouter* r);
} // namespace utp
} // namespace llarp
#endif