mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-13 01:10:24 +00:00
26 lines
672 B
C++
26 lines
672 B
C++
|
#ifndef LLARP_LINK_IWP_HPP
|
||
|
#define LLARP_LINK_IWP_HPP
|
||
|
|
||
|
#include <memory>
|
||
|
#include <link/server.hpp>
|
||
|
|
||
|
namespace llarp
|
||
|
{
|
||
|
namespace iwp
|
||
|
{
|
||
|
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 iwp
|
||
|
} // namespace llarp
|
||
|
|
||
|
#endif
|