1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/rpc/rpc_server.hpp

28 lines
465 B
C++
Raw Normal View History

2020-05-21 16:09:45 +02:00
#pragma once
#include <string_view>
#include <oxenmq/oxenmq.h>
#include <oxenmq/address.h>
2020-05-21 16:09:45 +02:00
namespace llarp
{
struct AbstractRouter;
}
namespace llarp::rpc
{
2021-02-03 19:12:21 +01:00
using LMQ_ptr = std::shared_ptr<oxenmq::OxenMQ>;
2020-05-21 16:09:45 +02:00
struct RpcServer
{
explicit RpcServer(LMQ_ptr, AbstractRouter*);
~RpcServer() = default;
void
2021-02-03 19:12:21 +01:00
AsyncServeRPC(oxenmq::address addr);
2020-05-21 16:09:45 +02:00
private:
LMQ_ptr m_LMQ;
AbstractRouter* const m_Router;
};
} // namespace llarp::rpc