lokinet/llarp/link/iwp.hpp

29 lines
700 B
C++
Raw Normal View History

2019-01-05 13:45:05 +00:00
#ifndef LLARP_LINK_IWP_HPP
#define LLARP_LINK_IWP_HPP
#include <link/server.hpp>
#include <memory>
2019-01-05 13:45:05 +00:00
namespace llarp
{
struct AbstractRouter;
2019-01-05 13:45:05 +00:00
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(AbstractRouter* r);
2019-01-05 13:45:05 +00:00
} // namespace iwp
} // namespace llarp
#endif