mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-05 21:20:38 +00:00
1779f33506
use lokimq::address instead of std::string or std::string_view
28 lines
465 B
C++
28 lines
465 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
#include <lokimq/lokimq.h>
|
|
#include <lokimq/address.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(lokimq::address addr);
|
|
|
|
private:
|
|
LMQ_ptr m_LMQ;
|
|
AbstractRouter* const m_Router;
|
|
};
|
|
} // namespace llarp::rpc
|