mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
41 lines
664 B
C++
41 lines
664 B
C++
|
#include <llarp/rpc.hpp>
|
||
|
#include <libabyss.hpp>
|
||
|
|
||
|
namespace llarp
|
||
|
{
|
||
|
namespace rpc
|
||
|
{
|
||
|
struct ServerImpl : public ::abyss::http::BaseReqHandler
|
||
|
{
|
||
|
llarp_router* router;
|
||
|
|
||
|
ServerImpl(llarp_router* r)
|
||
|
: ::abyss::http::BaseReqHandler(2000), router(r)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
bool
|
||
|
Start(const std::string& addr)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
Server::Server(llarp_router* r) : m_Impl(new ServerImpl(r))
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Server::~Server()
|
||
|
{
|
||
|
delete m_Impl;
|
||
|
}
|
||
|
|
||
|
bool
|
||
|
Server::Start(const std::string& addr)
|
||
|
{
|
||
|
return m_Impl->Start(addr);
|
||
|
}
|
||
|
|
||
|
} // namespace rpc
|
||
|
} // namespace llarp
|