lokinet/llarp/iwp/iwp.hpp

29 lines
690 B
C++
Raw Normal View History

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>
#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