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