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 >
|
2019-05-28 19:45:08 +00:00
|
|
|
NewServer(const SecretKey& routerEncSecret, llarp::GetRCFunc getrc,
|
|
|
|
llarp::LinkMessageHandler h, llarp::SessionEstablishedHandler est,
|
2019-01-05 13:45:05 +00:00
|
|
|
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
|