2019-03-29 15:17:49 +00:00
|
|
|
#ifndef LLARP_IWP_HPP
|
|
|
|
#define LLARP_IWP_HPP
|
2019-01-05 13:45:05 +00:00
|
|
|
|
|
|
|
#include <link/server.hpp>
|
|
|
|
|
2019-02-11 19:45:42 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2019-01-05 13:45:05 +00:00
|
|
|
namespace llarp
|
|
|
|
{
|
2019-02-11 19:45:42 +00:00
|
|
|
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 >
|
2019-02-11 19:45:42 +00:00
|
|
|
NewServerFromRouter(AbstractRouter* r);
|
2019-01-05 13:45:05 +00:00
|
|
|
|
|
|
|
} // namespace iwp
|
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|