mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
690 B
C++
29 lines
690 B
C++
6 years ago
|
#ifndef LLARP_IWP_HPP
|
||
|
#define LLARP_IWP_HPP
|
||
6 years ago
|
|
||
|
#include <link/server.hpp>
|
||
|
|
||
6 years ago
|
#include <memory>
|
||
|
|
||
6 years ago
|
namespace llarp
|
||
|
{
|
||
6 years ago
|
struct AbstractRouter;
|
||
|
|
||
6 years ago
|
namespace iwp
|
||
|
{
|
||
|
std::unique_ptr< ILinkLayer >
|
||
|
NewServer(llarp::Crypto* crypto, const SecretKey& routerEncSecret,
|
||
|
llarp::GetRCFunc getrc, llarp::LinkMessageHandler h,
|
||
|
llarp::SessionEstablishedHandler est,
|
||
|
llarp::SessionRenegotiateHandler reneg,
|
||
|
llarp::SignBufferFunc sign, llarp::TimeoutHandler timeout,
|
||
|
llarp::SessionClosedHandler closed);
|
||
|
|
||
|
std::unique_ptr< ILinkLayer >
|
||
6 years ago
|
NewServerFromRouter(AbstractRouter* r);
|
||
6 years ago
|
|
||
|
} // namespace iwp
|
||
|
} // namespace llarp
|
||
|
|
||
|
#endif
|