|
OpenCBDC Transaction Processor
|
Client to synchronously request information from the watchtower. More...
#include <client.hpp>
Public Member Functions | |
| blocking_client ()=delete | |
| blocking_client (network::endpoint_t ep) | |
| Constructor. | |
| auto | init () -> bool |
| Attempts to connect to the watchtower. | |
| ~blocking_client () | |
| blocking_client (const blocking_client &)=delete | |
| auto | operator= (const blocking_client &) -> blocking_client &=delete |
| blocking_client (blocking_client &&)=delete | |
| auto | operator= (blocking_client &&) -> blocking_client &=delete |
| auto | request_best_block_height () -> std::shared_ptr< best_block_height_response > |
| Sends a request_best_block_height to the Watchtower. | |
| auto | request_status_update (const status_update_request &req) -> std::shared_ptr< status_request_check_success > |
| Sends a StatusUpdateRequest to the Watchtower. | |
Client to synchronously request information from the watchtower.
Definition at line 22 of file uhs/atomizer/watchtower/client.hpp.
|
delete |
|
explicit |
Constructor.
| ep | Watchtower endpoint. |
Definition at line 14 of file uhs/atomizer/watchtower/client.cpp.
| cbdc::watchtower::blocking_client::~blocking_client | ( | ) |
Definition at line 17 of file uhs/atomizer/watchtower/client.cpp.
References cbdc::network::connection_manager::close().

|
delete |
|
delete |
| auto cbdc::watchtower::blocking_client::init | ( | ) | -> bool |
Attempts to connect to the watchtower.
Definition at line 22 of file uhs/atomizer/watchtower/client.cpp.
|
delete |
|
delete |
| auto cbdc::watchtower::blocking_client::request_best_block_height | ( | ) | -> std::shared_ptr<best_block_height_response> |
Sends a request_best_block_height to the Watchtower.
Blocks until the Watchtower sends a response.
Definition at line 44 of file uhs/atomizer/watchtower/client.cpp.
References cbdc::make_shared_buffer().

| auto cbdc::watchtower::blocking_client::request_status_update | ( | const status_update_request & | req | ) | -> std::shared_ptr<status_request_check_success> |
Sends a StatusUpdateRequest to the Watchtower.
Blocks until the Watchtower sends a response.
| req | request to send to the Watchtower. |
Definition at line 59 of file uhs/atomizer/watchtower/client.cpp.
References cbdc::make_shared_buffer().
