summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-18 20:50:48 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 13:22:46 +0100
commit1941de4eaff86a096b1720ad10fa5a633bf77243 (patch)
tree860464b02d1ee649806e0aed15606fe3bbc1e727 /examples
parentab0704e1559c316e65b4bce4e1ab913cdee4dfa2 (diff)
downloadqtwebsockets-1941de4eaff86a096b1720ad10fa5a633bf77243.tar.gz
Limit line length to 100 chars per line
Change-Id: I2a91033c9882ca54c6fcf26d9eb5a3c91f9e0f7d Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/echoclient/echoclient.cpp3
-rw-r--r--examples/echoserver/echoserver.cpp3
-rw-r--r--examples/simplechat/chatserver.cpp3
-rw-r--r--examples/sslechoclient/sslechoclient.cpp3
-rw-r--r--examples/sslechoserver/sslechoserver.cpp3
5 files changed, 10 insertions, 5 deletions
diff --git a/examples/echoclient/echoclient.cpp b/examples/echoclient/echoclient.cpp
index 452b20e..f7ffae3 100644
--- a/examples/echoclient/echoclient.cpp
+++ b/examples/echoclient/echoclient.cpp
@@ -59,7 +59,8 @@ EchoClient::EchoClient(const QUrl &url, QObject *parent) :
void EchoClient::onConnected()
{
qDebug() << "Websocket connected";
- connect(&m_webSocket, SIGNAL(textMessageReceived(QString)), this, SLOT(onTextMessageReceived(QString)));
+ connect(&m_webSocket, SIGNAL(textMessageReceived(QString)), this,
+ SLOT(onTextMessageReceived(QString)));
m_webSocket.write("Hello, world!");
}
//! [onConnected]
diff --git a/examples/echoserver/echoserver.cpp b/examples/echoserver/echoserver.cpp
index 53abe41..ca0e09f 100644
--- a/examples/echoserver/echoserver.cpp
+++ b/examples/echoserver/echoserver.cpp
@@ -75,7 +75,8 @@ void EchoServer::onNewConnection()
QWebSocket *pSocket = m_pWebSocketServer->nextPendingConnection();
connect(pSocket, SIGNAL(textMessageReceived(QString)), this, SLOT(processMessage(QString)));
- connect(pSocket, SIGNAL(binaryMessageReceived(QByteArray)), this, SLOT(processBinaryMessage(QByteArray)));
+ connect(pSocket, SIGNAL(binaryMessageReceived(QByteArray)), this,
+ SLOT(processBinaryMessage(QByteArray)));
connect(pSocket, SIGNAL(disconnected()), this, SLOT(socketDisconnected()));
m_clients << pSocket;
diff --git a/examples/simplechat/chatserver.cpp b/examples/simplechat/chatserver.cpp
index 5c6116c..44f2748 100644
--- a/examples/simplechat/chatserver.cpp
+++ b/examples/simplechat/chatserver.cpp
@@ -51,7 +51,8 @@ ChatServer::ChatServer(quint16 port, QObject *parent) :
m_pWebSocketServer(Q_NULLPTR),
m_clients()
{
- m_pWebSocketServer = new QWebSocketServer("Chat Server", QWebSocketServer::SecureModeNonSecure, this);
+ m_pWebSocketServer = new QWebSocketServer("Chat Server", QWebSocketServer::SecureModeNonSecure,
+ this);
if (m_pWebSocketServer->listen(QHostAddress::Any, port))
{
qDebug() << "Chat Server listening on port" << port;
diff --git a/examples/sslechoclient/sslechoclient.cpp b/examples/sslechoclient/sslechoclient.cpp
index 7160442..8d38b92 100644
--- a/examples/sslechoclient/sslechoclient.cpp
+++ b/examples/sslechoclient/sslechoclient.cpp
@@ -57,7 +57,8 @@ SslEchoClient::SslEchoClient(const QUrl &url, QObject *parent) :
void SslEchoClient::onConnected()
{
qDebug() << "Websocket connected";
- connect(&m_webSocket, SIGNAL(textMessageReceived(QString)), this, SLOT(onTextMessageReceived(QString)));
+ connect(&m_webSocket, SIGNAL(textMessageReceived(QString)), this,
+ SLOT(onTextMessageReceived(QString)));
m_webSocket.write("Hello, world!");
}
//! [onConnected]
diff --git a/examples/sslechoserver/sslechoserver.cpp b/examples/sslechoserver/sslechoserver.cpp
index e0d638f..f79825d 100644
--- a/examples/sslechoserver/sslechoserver.cpp
+++ b/examples/sslechoserver/sslechoserver.cpp
@@ -54,7 +54,8 @@ SslEchoServer::SslEchoServer(quint16 port, QObject *parent) :
m_pWebSocketServer(Q_NULLPTR),
m_clients()
{
- m_pWebSocketServer = new QWebSocketServer("SSL Echo Server", QWebSocketServer::SecureModeSecure, this);
+ m_pWebSocketServer = new QWebSocketServer("SSL Echo Server", QWebSocketServer::SecureModeSecure,
+ this);
QSslConfiguration sslConfiguration;
QFile certFile(QStringLiteral("./localhost.cert"));
QFile keyFile(QStringLiteral("./localhost.key"));