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.
lokinet/llarp/rpc.cpp

41 lines
664 B
C++

6 years ago
#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