RPC client for a remote ticket machine.  
 More...
#include <client.hpp>
RPC client for a remote ticket machine. 
Definition at line 15 of file parsec/ticket_machine/client.hpp.
◆ client() [1/4]
  
  | 
        
          | cbdc::parsec::ticket_machine::rpc::client::client | ( | std::vector< network::endpoint_t > | endpoints | ) |  |  | explicit | 
 
 
◆ client() [2/4]
  
  | 
        
          | cbdc::parsec::ticket_machine::rpc::client::client | ( |  | ) |  |  | delete | 
 
 
◆ ~client()
  
  | 
        
          | cbdc::parsec::ticket_machine::rpc::client::~client | ( |  | ) |  |  | overridedefault | 
 
 
◆ client() [3/4]
  
  | 
        
          | cbdc::parsec::ticket_machine::rpc::client::client | ( | const client & |  | ) |  |  | delete | 
 
 
◆ client() [4/4]
  
  | 
        
          | cbdc::parsec::ticket_machine::rpc::client::client | ( | client && |  | ) |  |  | delete | 
 
 
◆ get_ticket_number()
Requests a new batch of ticket numbers from the remote ticket machine. 
Always returns a single ticket number (range size of 1). Caches ticket numbers to avoid making an RPC request per call. If a ticket number is available in the cache, calls the callback before returning. 
- Parameters
- 
  
    | result_callback | function to call with the new ticket number. |  
 
- Returns
- true if the request was initiated successfully. 
Implements cbdc::parsec::ticket_machine::interface.
Definition at line 20 of file parsec/ticket_machine/client.cpp.
 
 
◆ init()
      
        
          | auto cbdc::parsec::ticket_machine::rpc::client::init | ( |  | ) | -> bool | 
      
 
 
◆ operator=() [1/2]
  
  | 
        
          | auto cbdc::parsec::ticket_machine::rpc::client::operator= | ( | client && |  | ) | ->  client &=delete |  | delete | 
 
 
◆ operator=() [2/2]
  
  | 
        
          | auto cbdc::parsec::ticket_machine::rpc::client::operator= | ( | const client & |  | ) | ->  client &=delete |  | delete | 
 
 
The documentation for this class was generated from the following files: