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
▼
OpenCBDC Transaction Processor
►
Namespaces
►
Data Structures
▼
Files
▼
File List
▼
src
►
parsec
►
uhs
▼
util
►
common
►
network
►
raft
▼
rpc
►
http
►
async_server.hpp
►
blocking_server.hpp
►
client.hpp
►
format.cpp
►
format.hpp
►
header.hpp
►
messages.hpp
►
server.hpp
►
tcp_client.hpp
►
tcp_server.hpp
►
serialization
►
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Loading...
Searching...
No Matches
util/rpc/messages.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_RPC_MESSAGES_H_
7
#define OPENCBDC_TX_SRC_RPC_MESSAGES_H_
8
9
#include "
header.hpp
"
10
11
#include <optional>
12
13
namespace
cbdc::rpc
{
16
template
<
typename
T>
17
struct
request
{
19
header
m_header
;
21
T
m_payload
;
22
};
17
struct
request
{
…
};
23
26
template
<
typename
T>
27
struct
response
{
29
header
m_header
{};
31
std::optional<T>
m_payload
;
32
};
27
struct
response
{
…
};
33
}
34
35
#endif
header.hpp
cbdc::rpc
Definition
async_server.hpp:11
cbdc::rpc::header
RPC request and response header.
Definition
header.hpp:15
cbdc::rpc::request
RPC request message.
Definition
util/rpc/messages.hpp:17
cbdc::rpc::request::m_header
header m_header
Request header.
Definition
util/rpc/messages.hpp:19
cbdc::rpc::request::m_payload
T m_payload
Request payload.
Definition
util/rpc/messages.hpp:21
cbdc::rpc::response
RPC response message.
Definition
util/rpc/messages.hpp:27
cbdc::rpc::response::m_header
header m_header
Response header.
Definition
util/rpc/messages.hpp:29
cbdc::rpc::response::m_payload
std::optional< T > m_payload
Response payload or std::nullopt if processing the request failed.
Definition
util/rpc/messages.hpp:31
src
util
rpc
messages.hpp
Generated by
1.12.0