2018-09-04 12:41:25 +00:00
|
|
|
#ifndef LLARP_LINK_UTP_HPP
|
|
|
|
#define LLARP_LINK_UTP_HPP
|
|
|
|
|
2018-12-12 01:32:10 +00:00
|
|
|
#include <memory>
|
2018-12-17 20:46:08 +00:00
|
|
|
#include <link/server.hpp>
|
2018-09-04 12:41:25 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
2019-02-11 19:45:42 +00:00
|
|
|
struct AbstractRouter;
|
2018-12-12 01:32:10 +00:00
|
|
|
|
2018-09-04 12:41:25 +00:00
|
|
|
namespace utp
|
|
|
|
{
|
|
|
|
std::unique_ptr< ILinkLayer >
|
2019-01-05 13:45:05 +00:00
|
|
|
NewServer(llarp::Crypto* crypto, const SecretKey& routerEncSecret,
|
2018-12-17 20:46:08 +00:00
|
|
|
llarp::GetRCFunc getrc, llarp::LinkMessageHandler h,
|
2018-12-19 16:17:41 +00:00
|
|
|
llarp::SessionEstablishedHandler est,
|
|
|
|
llarp::SessionRenegotiateHandler reneg,
|
|
|
|
llarp::SignBufferFunc sign, llarp::TimeoutHandler timeout,
|
2018-12-17 20:46:08 +00:00
|
|
|
llarp::SessionClosedHandler closed);
|
|
|
|
|
|
|
|
std::unique_ptr< ILinkLayer >
|
2019-02-11 19:45:42 +00:00
|
|
|
NewServerFromRouter(AbstractRouter* r);
|
2018-12-17 20:46:08 +00:00
|
|
|
} // namespace utp
|
2018-09-04 12:41:25 +00:00
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|