OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::watchtower::response Class Reference

RPC response message from the watchtower external endpoint. More...

#include <watchtower.hpp>

Public Types

using response_t
 

Public Member Functions

auto operator== (const response &rhs) const -> bool
 
 response ()=delete
 
 response (response_t resp)
 Constructor.
 
 response (cbdc::serializer &pkt)
 Construct from a packet.
 
auto payload () const -> const response_t &
 Return the response payload.
 

Friends

auto cbdc::operator<< (cbdc::serializer &packet, const cbdc::watchtower::response &res) -> cbdc::serializer &
 

Detailed Description

RPC response message from the watchtower external endpoint.

Definition at line 96 of file watchtower.hpp.

Member Typedef Documentation

◆ response_t

Initial value:
std::variant<status_request_check_success,
best_block_height_response>

Definition at line 106 of file watchtower.hpp.

Constructor & Destructor Documentation

◆ response() [1/3]

cbdc::watchtower::response::response ( )
delete

◆ response() [2/3]

cbdc::watchtower::response::response ( response_t resp)
explicit

Constructor.

Parameters
respresponse payload.

Definition at line 208 of file watchtower.cpp.

◆ response() [3/3]

cbdc::watchtower::response::response ( cbdc::serializer & pkt)
explicit

Construct from a packet.

Parameters
pktpacket containing a serialized response.

Definition at line 210 of file watchtower.cpp.

Member Function Documentation

◆ operator==()

auto cbdc::watchtower::response::operator== ( const response & rhs) const -> bool

Definition at line 204 of file watchtower.cpp.

◆ payload()

auto cbdc::watchtower::response::payload ( ) const -> const response_t&
nodiscard

Return the response payload.

Returns
response payload.

Definition at line 214 of file watchtower.cpp.

Friends And Related Symbol Documentation

◆ cbdc::operator<<

auto cbdc::operator<< ( cbdc::serializer & packet,
const cbdc::watchtower::response & res ) -> cbdc::serializer &
friend

The documentation for this class was generated from the following files: