summaryrefslogtreecommitdiff
path: root/examples/sslechoserver/sslechoserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sslechoserver/sslechoserver.cpp')
-rw-r--r--examples/sslechoserver/sslechoserver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/sslechoserver/sslechoserver.cpp b/examples/sslechoserver/sslechoserver.cpp
index b360a08..d24c934 100644
--- a/examples/sslechoserver/sslechoserver.cpp
+++ b/examples/sslechoserver/sslechoserver.cpp
@@ -89,7 +89,7 @@ void SslEchoServer::onNewConnection()
qDebug() << "Client connected:" << pSocket->peerName() << pSocket->origin();
- connect(pSocket, &QWebSocket::textMessageReceived, this, &SslEchoServer::processMessage);
+ connect(pSocket, &QWebSocket::textMessageReceived, this, &SslEchoServer::processTextMessage);
connect(pSocket, &QWebSocket::binaryMessageReceived,
this, &SslEchoServer::processBinaryMessage);
connect(pSocket, &QWebSocket::disconnected, this, &SslEchoServer::socketDisconnected);
@@ -99,8 +99,8 @@ void SslEchoServer::onNewConnection()
}
//! [onNewConnection]
-//! [processMessage]
-void SslEchoServer::processMessage(QString message)
+//! [processTextMessage]
+void SslEchoServer::processTextMessage(QString message)
{
QWebSocket *pClient = qobject_cast<QWebSocket *>(sender());
if (pClient)
@@ -109,7 +109,7 @@ void SslEchoServer::processMessage(QString message)
Q_UNUSED(bytesWritten);
}
}
-//! [processMessage]
+//! [processTextMessage]
//! [processBinaryMessage]
void SslEchoServer::processBinaryMessage(QByteArray message)