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
|
|
|
|
{
|
|
|
|
struct AbstractRouter;
|
|
|
|
|
|
|
|
namespace utp
|
|
|
|
{
|
2019-05-15 15:54:26 +00:00
|
|
|
LinkLayer_ptr
|
2019-05-28 19:45:08 +00:00
|
|
|
NewServer(const SecretKey& routerEncSecret, GetRCFunc getrc,
|
2019-03-29 14:23:19 +00:00
|
|
|
LinkMessageHandler h, SessionEstablishedHandler est,
|
|
|
|
SessionRenegotiateHandler reneg, SignBufferFunc sign,
|
|
|
|
TimeoutHandler timeout, SessionClosedHandler closed);
|
|
|
|
|
2019-05-15 15:54:26 +00:00
|
|
|
LinkLayer_ptr
|
2019-03-29 14:23:19 +00:00
|
|
|
NewServerFromRouter(AbstractRouter* r);
|
|
|
|
} // namespace utp
|
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|