mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
29 lines
690 B
C++
29 lines
690 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(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);
|
|
|
|
} // namespace iwp
|
|
} // namespace llarp
|
|
|
|
#endif
|