OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
uhs/twophase/coordinator/server.hpp
Go to the documentation of this file.
1
// Copyright (c) 2021 MIT Digital Currency Initiative,
2
// Federal Reserve Bank of Boston
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef OPENCBDC_TX_SRC_COORDINATOR_SERVER_H_
7
#define OPENCBDC_TX_SRC_COORDINATOR_SERVER_H_
8
9
#include "
interface.hpp
"
10
#include "
messages.hpp
"
11
#include "
util/rpc/async_server.hpp
"
12
13
namespace
cbdc::coordinator::rpc
{
15
class
server
{
16
public
:
21
server
(
22
interface
* impl,
// TODO: convert coordinator::controller to
23
// contain a shared_ptr to an implementation
24
std::unique_ptr<
cbdc::rpc::async_server<request, response>
> srv);
25
26
private
:
27
interface
* m_impl;
28
std::unique_ptr<cbdc::rpc::async_server<request, response>> m_srv;
29
};
30
}
31
32
#endif
async_server.hpp
cbdc::coordinator::interface
Interface for a coordinator.
Definition
uhs/twophase/coordinator/interface.hpp:20
cbdc::coordinator::rpc::server
RPC server for a coordinator.
Definition
uhs/twophase/coordinator/server.hpp:15
cbdc::coordinator::rpc::server::server
server(interface *impl, std::unique_ptr< cbdc::rpc::async_server< request, response > > srv)
Constructor.
Definition
uhs/twophase/coordinator/server.cpp:9
cbdc::rpc::async_server
Generic asynchronous RPC server.
Definition
async_server.hpp:28
cbdc::coordinator::rpc
Definition
uhs/twophase/coordinator/client.cpp:10
interface.hpp
messages.hpp
src
uhs
twophase
coordinator
server.hpp
Generated by
1.12.0