lokinet/llarp/iwp/iwp.hpp

41 lines
1.0 KiB
C++
Raw Normal View History

#pragma once
2019-01-05 13:45:05 +00:00
#include <llarp/link/server.hpp>
#include "linklayer.hpp"
#include <memory>
#include <llarp/config/key_manager.hpp>
namespace llarp::iwp
2019-01-05 13:45:05 +00:00
{
LinkLayer_ptr
NewInboundLink(
std::shared_ptr<KeyManager> keyManager,
2021-02-22 13:26:32 +00:00
std::shared_ptr<EventLoop> loop,
GetRCFunc getrc,
LinkMessageHandler h,
SignBufferFunc sign,
BeforeConnectFunc_t before,
SessionEstablishedHandler est,
SessionRenegotiateHandler reneg,
TimeoutHandler timeout,
SessionClosedHandler closed,
PumpDoneHandler pumpDone,
WorkerFunc_t work);
2019-01-05 13:45:05 +00:00
LinkLayer_ptr
NewOutboundLink(
std::shared_ptr<KeyManager> keyManager,
2021-02-22 13:26:32 +00:00
std::shared_ptr<EventLoop> loop,
GetRCFunc getrc,
LinkMessageHandler h,
SignBufferFunc sign,
BeforeConnectFunc_t before,
SessionEstablishedHandler est,
SessionRenegotiateHandler reneg,
TimeoutHandler timeout,
SessionClosedHandler closed,
PumpDoneHandler pumpDone,
WorkerFunc_t work);
} // namespace llarp::iwp