#include #include "client_p.h" using namespace QRedis; Client::Client() : d(new ClientPrivate) { connect(d->socket, &QTcpSocket::connected, this, &Client::connected); connect(d->socket, &QTcpSocket::disconnected, this, &Client::disconnected); } Client::~Client() { } void Client::connectToHost(const QHostAddress & address, quint16 port) { d->socket.connectToHost(address, port); } void Client::disconnectFromHost() { d->socket.disconnectFromHost(); } Command * Client::sendCommand() { return nullptr; }