mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
28 lines
653 B
C++
28 lines
653 B
C++
#ifndef LLARP_IWP_HPP
|
|
#define LLARP_IWP_HPP
|
|
|
|
#include <link/server.hpp>
|
|
|
|
#include <memory>
|
|
|
|
namespace llarp
|
|
{
|
|
struct AbstractRouter;
|
|
|
|
namespace iwp
|
|
{
|
|
std::unique_ptr< ILinkLayer >
|
|
NewServer(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 iwp
|
|
} // namespace llarp
|
|
|
|
#endif
|