summaryrefslogtreecommitdiff
path: root/examples/echoclient
Commit message (Collapse)AuthorAgeFilesLines
* Move examples into 'websockets' folderKai Koehne2014-03-194-204/+0
| | | | | | | | | In the packaging process the content of all 'examples' folders are copied together into one folder ... so modules are supposed to have their submodule name as a sub-folder of 'examples'. Change-Id: I9981b914e8268c932ca5a3d1c9fa73f8db0b6a5b Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Adapt copyright headerKurt Pattyn2014-02-153-3/+3
| | | | | Change-Id: I9773492d3673d8aabdb4dd178be6af12eca7ba74 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Simplify echoclient exampleJędrzej Nowacki2014-02-113-7/+0
| | | | | Change-Id: I773665754089c1f4548712df280289c77d45eba9 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Remove superfluous Q_REQUIRED_RESULTKurt Pattyn2014-02-041-2/+1
| | | | | | Change-Id: Ie4e01a82082c45918b55e8588c7322dd359ba8c1 Reviewed-by: Milian Wolff <milian.wolff@kdab.com> Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Rename write methodsKurt Pattyn2014-01-201-1/+1
| | | | | | | | | Renamed the write methods to sendTextMessage and sendBinaryMessage respectively. This makes the code more readable. Change-Id: Ie49abf07a37f54c84bd01c5c788d2e42b28bcfdd Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Use QStringLiteral where appropriateKurt Pattyn2014-01-202-2/+2
| | | | | Change-Id: I608b555428aceafd7761a882cd4bd1fdb50d19b3 Reviewed-by: Richard J. Moore <rich@kde.org>
* Consume return value of write functionKurt Pattyn2014-01-201-1/+2
| | | | | Change-Id: Ia5d950f539f87f2f81e111f26e77960be456017e Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Use new connect syntaxKurt Pattyn2014-01-202-5/+5
| | | | | Change-Id: I0b48c6cba12902d910c4f586fa105a13d084a437 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Limit line length to 100 chars per lineKurt Pattyn2014-01-201-1/+2
| | | | | Change-Id: I2a91033c9882ca54c6fcf26d9eb5a3c91f9e0f7d Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Cleanup code to comply with Qt styleKurt Pattyn2013-12-103-0/+3
| | | | | | | | | | | | | | - Correct placement of curly braces - Remove commented-out code - Remove superfluous qDebug statements - Add missing QT_BEGIN_NAMESPACE declarations - Add move semantics - Add cleanup handling to QWebSocketServerPrivate - Add error handling to handshake response, QWebSocketServerPrivate, QWebSocketServer, dataprocessor Change-Id: I0690dc2c444fd6fc0db974d1459bf41bd8c31d40 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Change open method so that a web socket can be reopenedKurt Pattyn2013-11-182-1/+4
| | | | | Change-Id: I1c7059a8e581ce5179c00f187b03f59fbed63ba6 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Add sslEchoClient and sslEchoServer examplesKurt Pattyn2013-11-063-4/+4
| | | | | | | Add license headers Change-Id: Ied74cb3db6ceed6c3f361e4afac860a7a3fb7676 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Sanitize .pro filesKurt Pattyn2013-11-021-2/+0
| | | | | | | | Remove c++11 config flag if not necessary Remove mac specific compiler settings Change-Id: If3cb4c5396f6dd5679a9fc8cf8f8a81c34ad6f4c Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Use QT namespace and forward declarationsKurt Pattyn2013-11-022-0/+4
| | | | | Change-Id: I67a0ee96f2e21ed441bb10f55c6bf8180245846b Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Add correct license headersKurt Pattyn2013-11-013-0/+120
| | | | | Change-Id: I789cd780697aedbca7a90a5991df00b2c7e9ec98 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Add functionality to ignore ssl errorsKurt Pattyn2013-11-011-1/+1
| | | | | Change-Id: I81248b9af104c0b3d37c9cfcef250a102f4b1d32 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* make use of the new Q_NULLPTR keyword & shorten if(ptr) conditionsSteven Ceuppens2013-10-111-1/+1
| | | | | Change-Id: I4a71909134032d10b398ede74c431964bce7d675 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Changes to integrate the websocket module as a full Qt Add-On moduleSteven Ceuppens2013-09-281-3/+1
| | | | | | | | | | | | | | | | | | | | | - Changed project files to use Qt structure - Moved existing sources into subdirectory, to make room for moduels - Created a "import/qmlwebsocket" module skeleton (works, but needs to be extended) - Modified examples to not use "include(.pri)", but use "QT += websocket" - Added qml example skeleton (works, but no useful functionality yet) Project can be build with: $ qmake $ make $ make install Module can be used in other projects with QT += websockets Change-Id: I2123026958b264670dbf8a978dee76edf5855806 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
* Added -Wextra compiler checkKurt Pattyn2013-08-301-3/+5
|
* Replaced tabs by spacesKurt Pattyn2013-08-253-17/+17
|
* Renamed qwebsocket.pri to qwebsockets.priKurt Pattyn2013-08-251-1/+1
|
* Cleaned up the project filesKurt Pattyn2013-08-251-1/+2
|
* Replaced write() methods with send() methods to comply with the ↵Kurt Pattyn2013-08-251-1/+1
| | | | QAbstractSocket API
* Renamed websocket.pri to qwebsocket.priKurt Pattyn2013-08-251-1/+1
|
* Renamed source directory to src (to be in line with Qt)Kurt Pattyn2013-08-251-1/+1
|
* Renamed WebSocket to QWebSocketKurt Pattyn2013-08-241-2/+2
| | | | | | | Renamed WebSocketProtocol to QWebSocketProtocol Renamed WebSocketServer to QWebSocketServer Adapted source files to include renamed headers Added qwebsocketsglobal.h file
* Added doxygen snippet tagsKurt Pattyn2013-08-131-0/+6
|
* Renamed WebWocketClient to EchoClient to be consistent with the EchoServer ↵Kurt Pattyn2013-08-134-16/+15
| | | | | | example Added QUrl parameter to constructor
* Renamed WebWocketClient to EchoClient to be consistent with the EchoServer ↵Kurt Pattyn2013-08-134-0/+76
example