lokinet/llarp/utp/utp.hpp

29 lines
900 B
C++
Raw Normal View History

2019-03-29 14:23:19 +00:00
#ifndef LLARP_UTP_UTP_HPP
#define LLARP_UTP_UTP_HPP
#include <memory>
#include <link/server.hpp>
namespace llarp
{
namespace utp
{
2019-05-15 15:54:26 +00:00
LinkLayer_ptr
NewInboundLink(const SecretKey& routerEncSecret, GetRCFunc getrc,
2019-08-07 16:33:29 +00:00
LinkMessageHandler h, SignBufferFunc sign,
SessionEstablishedHandler est,
SessionRenegotiateHandler reneg, TimeoutHandler timeout,
SessionClosedHandler closed);
LinkLayer_ptr
NewOutboundLink(const SecretKey& routerEncSecret, GetRCFunc getrc,
2019-08-07 16:33:29 +00:00
LinkMessageHandler h, SignBufferFunc sign,
SessionEstablishedHandler est,
SessionRenegotiateHandler reneg, TimeoutHandler timeout,
SessionClosedHandler closed);
2019-07-28 15:33:18 +00:00
/// shim
const auto NewServer = NewInboundLink;
2019-03-29 14:23:19 +00:00
} // namespace utp
} // namespace llarp
#endif