mirror of https://github.com/oxen-io/lokinet
add stubs for lmq rpc server
parent
520e472bcd
commit
fb8b8e2e56
@ -0,0 +1,14 @@
|
||||
#include "rpc_server.hpp"
|
||||
|
||||
namespace llarp::rpc
|
||||
{
|
||||
RpcServer::RpcServer(LMQ_ptr lmq, AbstractRouter* r) : m_LMQ(std::move(lmq)), m_Router(r)
|
||||
{
|
||||
}
|
||||
|
||||
void RpcServer::AsyncServeRPC(std::string_view)
|
||||
{
|
||||
throw std::runtime_error("FIXME: implement llarp::rpc::RpcServer::AsyncServeRPC");
|
||||
}
|
||||
|
||||
} // namespace llarp::rpc
|
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <string_view>
|
||||
#include <lokimq/lokimq.h>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
struct AbstractRouter;
|
||||
}
|
||||
|
||||
namespace llarp::rpc
|
||||
{
|
||||
using LMQ_ptr = std::shared_ptr<lokimq::LokiMQ>;
|
||||
|
||||
struct RpcServer
|
||||
{
|
||||
explicit RpcServer(LMQ_ptr, AbstractRouter*);
|
||||
~RpcServer() = default;
|
||||
void
|
||||
AsyncServeRPC(const std::string_view addr);
|
||||
|
||||
private:
|
||||
LMQ_ptr m_LMQ;
|
||||
AbstractRouter* const m_Router;
|
||||
};
|
||||
} // namespace llarp::rpc
|
Loading…
Reference in New Issue