#include <tcp_client.hpp>
implementation of the tcp_client_iface based on tacopie networking library 
◆ async_read()
  
  | 
        
          | void cpp_redis::network::tcp_client::async_read | ( | read_request & | request | ) |  |  | virtual | 
 
 
◆ async_write()
  
  | 
        
          | void cpp_redis::network::tcp_client::async_write | ( | write_request & | request | ) |  |  | virtual | 
 
 
◆ connect()
  
  | 
        
          | void cpp_redis::network::tcp_client::connect | ( | const std::string & | addr, |  
          |  |  | std::uint32_t | port, |  
          |  |  | std::uint32_t | timeout_msecs |  
          |  | ) |  |  |  | virtual | 
 
 
◆ disconnect()
  
  | 
        
          | void cpp_redis::network::tcp_client::disconnect | ( | bool | wait_for_removal = false | ) |  |  | virtual | 
 
stop the tcp client
- Parameters
- 
  
    | wait_for_removal | when sets to true, disconnect blocks until the underlying TCP client has been effectively removed from the io_service and that all the underlying callbacks have completed. |  
 
Implements cpp_redis::network::tcp_client_iface.
 
 
◆ is_connected()
  
  | 
        
          | bool cpp_redis::network::tcp_client::is_connected | ( | void |  | ) | const |  | virtual | 
 
 
◆ set_nb_workers()
      
        
          | void cpp_redis::network::tcp_client::set_nb_workers | ( | std::size_t | nb_threads | ) |  | 
      
 
set number of io service workers for the io service monitoring this tcp connection
- Parameters
- 
  
    | nb_threads | number of threads to be assigned |  
 
 
 
◆ set_on_disconnection_handler()
  
  | 
        
          | void cpp_redis::network::tcp_client::set_on_disconnection_handler | ( | const disconnection_handler_t & | disconnection_handler | ) |  |  | virtual | 
 
 
The documentation for this class was generated from the following file: