OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
uhs/twophase/sentinel_2pc/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_SENTINEL_2PC_SERVER_H_
7#define OPENCBDC_TX_SRC_SENTINEL_2PC_SERVER_H_
8
12#include "util/rpc/format.hpp"
13
14namespace cbdc::sentinel::rpc {
17 public:
23 async_interface* impl, // TODO: convert sentinel_2pc::controller to
24 // contain a shared_ptr to an
25 // implementation
27
28 private:
29 async_interface* m_impl;
30 std::unique_ptr<cbdc::rpc::async_server<request, response>> m_srv;
31 };
32}
33
34#endif // OPENCBDC_TX_SRC_SENTINEL_2PC_SERVER_H_
Generic asynchronous RPC server.
Interface for an asynchronous sentinel.
Asynchronous RPC server for a sentinel.
async_server(async_interface *impl, std::unique_ptr< cbdc::rpc::async_server< request, response > > srv)
Constructor.