diff --git a/tcpClient/TcpClient.cpp b/tcpClient/TcpClient.cpp index e04601f9..a88f9b23 100644 --- a/tcpClient/TcpClient.cpp +++ b/tcpClient/TcpClient.cpp @@ -16,14 +16,14 @@ TcpClient::TcpClient(const QString & hostname, quint16 port, QObject *parent) : QTcpSocket(parent), blockSize_(0) { - connect(this, SIGNAL(readyRead()), this, SLOT(readData())); + connect(this, SIGNAL(readyRead()), this, SLOT(readReceivedData())); connect(this, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(displayError(QAbstractSocket::SocketError))); connect(this, SIGNAL(disconnected()), this, SLOT(connectionLost())); this->connectToHost(hostname, port); } -void TcpClient::readData() +void TcpClient::readReceivedData() { QDataStream in(this); in.setVersion(QDataStream::Qt_4_0); diff --git a/tcpClient/TcpClient.h b/tcpClient/TcpClient.h index 87c2c3df..018d1c1f 100644 --- a/tcpClient/TcpClient.h +++ b/tcpClient/TcpClient.h @@ -17,7 +17,7 @@ public: TcpClient(const QString & hostname, quint16 port, QObject * parent = 0); private slots: - void readData(); + void readReceivedData(); void displayError(QAbstractSocket::SocketError socketError); void connectionLost();