OpenCBDC Transaction Processor
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
Variables
Typedefs
a
b
c
d
e
h
i
k
l
p
r
s
t
v
w
Enumerations
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
h
i
m
Typedefs
b
c
d
e
f
g
h
i
k
l
p
r
s
t
v
Enumerations
Related Symbols
Files
File List
Globals
All
Functions
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
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
};
15
class
server
{
…
};
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