25 #include <cpp_redis/misc/error.hpp> 26 #include <cpp_redis/network/tcp_client_iface.hpp> 28 #include <tacopie/tacopie> 52 void connect(
const std::string& addr, std::uint32_t port, std::uint32_t timeout_msecs);
59 void disconnect(
bool wait_for_removal =
false);
100 tacopie::tcp_client m_client;
108 void set_default_nb_workers(std::size_t nb_threads);
~tcp_client(void)=default
dtor
void set_on_disconnection_handler(const disconnection_handler_t &disconnection_handler)
bool is_connected(void) const
void disconnect(bool wait_for_removal=false)
void async_read(read_request &request)
Definition: tcp_client_iface.hpp:114
void async_write(write_request &request)
std::function< void()> disconnection_handler_t
Definition: tcp_client_iface.hpp:160
void connect(const std::string &addr, std::uint32_t port, std::uint32_t timeout_msecs)
Definition: tcp_client_iface.hpp:37
Definition: tcp_client_iface.hpp:129
void set_nb_workers(std::size_t nb_threads)
tcp_client(void)=default
ctor
Definition: tcp_client.hpp:37
Definition: array_builder.hpp:29