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"
12
13namespace 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
25
26 private:
27 interface* m_impl;
28 std::unique_ptr<cbdc::rpc::async_server<request, response>> m_srv;
29 };
30}
31
32#endif
server(interface *impl, std::unique_ptr< cbdc::rpc::async_server< request, response > > srv)
Constructor.
Generic asynchronous RPC server.