lokinet/llarp/iwp/iwp.hpp

42 lines
997 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>
2019-08-22 20:53:27 +00:00
#include <iwp/linklayer.hpp>
#include <memory>
#include <config/key_manager.hpp>
namespace llarp::iwp
2019-01-05 13:45:05 +00:00
{
LinkLayer_ptr
NewInboundLink(
std::shared_ptr<KeyManager> keyManager,
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,
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
2019-01-05 13:45:05 +00:00
#endif