mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
25 lines
612 B
C++
25 lines
612 B
C++
|
#ifndef LLARP_UTP_UTP_HPP
|
||
|
#define LLARP_UTP_UTP_HPP
|
||
|
|
||
|
#include <memory>
|
||
|
#include <link/server.hpp>
|
||
|
|
||
|
namespace llarp
|
||
|
{
|
||
|
struct AbstractRouter;
|
||
|
|
||
|
namespace utp
|
||
|
{
|
||
|
std::unique_ptr< ILinkLayer >
|
||
|
NewServer(Crypto* crypto, const SecretKey& routerEncSecret, GetRCFunc getrc,
|
||
|
LinkMessageHandler h, SessionEstablishedHandler est,
|
||
|
SessionRenegotiateHandler reneg, SignBufferFunc sign,
|
||
|
TimeoutHandler timeout, SessionClosedHandler closed);
|
||
|
|
||
|
std::unique_ptr< ILinkLayer >
|
||
|
NewServerFromRouter(AbstractRouter* r);
|
||
|
} // namespace utp
|
||
|
} // namespace llarp
|
||
|
|
||
|
#endif
|