contrib/qtwebsockets.git
10 years agoFix typo (passive requires past participle)
Frederik Gladhorn [Thu, 9 Jan 2014 18:51:07 +0000 (19:51 +0100)]
Fix typo (passive requires past participle)

Change-Id: I3792ccb9fa40042d0a5912a3723bfbf23b867f73
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse const ref in public signals
Frederik Gladhorn [Fri, 17 Jan 2014 10:23:16 +0000 (11:23 +0100)]
Use const ref in public signals

Change-Id: I2846f668848395a820aabcc0359bcda2979bde1e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMake sure that the random generator is initialized in all code paths
Frederik Gladhorn [Fri, 17 Jan 2014 10:04:41 +0000 (11:04 +0100)]
Make sure that the random generator is initialized in all code paths

Change-Id: Ice4826e7670cffa791250a95387ac1121ddc4089
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoSimplify handshake reading functions
Frederik Gladhorn [Fri, 17 Jan 2014 11:39:05 +0000 (12:39 +0100)]
Simplify handshake reading functions

Change-Id: I000243e717b79972caa676ff10f68901904f28c9
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove doc reference to non-existent function
Laszlo Agocs [Fri, 17 Jan 2014 09:11:33 +0000 (10:11 +0100)]
Remove doc reference to non-existent function

Change-Id: I309104e808cd6749d8f9430fcbcf170c78056730
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove _p suffix from cpp filenames.
Kurt Pattyn [Sun, 12 Jan 2014 15:09:08 +0000 (16:09 +0100)]
Remove _p suffix from cpp filenames.

Change-Id: I425aa372fe2f4114939f2691f270644e66017276
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMove OpCode out of public API
Kurt Pattyn [Mon, 13 Jan 2014 10:23:56 +0000 (11:23 +0100)]
Move OpCode out of public API

Change-Id: Ic0b34b684d6f9ca98789304ead1cf8b993422d02
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUpdate documentation
Kurt Pattyn [Mon, 13 Jan 2014 10:28:21 +0000 (11:28 +0100)]
Update documentation

Change-Id: I98cab390cbb0f19741d6fa4ae5b0ada8d19d1f5f
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse new connect syntax
Kurt Pattyn [Mon, 13 Jan 2014 10:20:39 +0000 (11:20 +0100)]
Use new connect syntax

Change-Id: Idd002ff72d27e5b549600704ae0e857bd021f5d1
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoLimit line length to 100 characters.
Kurt Pattyn [Sun, 12 Jan 2014 19:28:07 +0000 (20:28 +0100)]
Limit line length to 100 characters.

Change-Id: I9da963570b174b9a5a33e65cf144402677b4bab5
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoReplace emit by Q_EMIT
Kurt Pattyn [Sat, 11 Jan 2014 18:15:16 +0000 (19:15 +0100)]
Replace emit by Q_EMIT

Change-Id: I8543a74a9b3c8c1b45d9e0e12223072b6637199b
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove waitXXX() methods from websockets
Kurt Pattyn [Sat, 11 Jan 2014 18:08:28 +0000 (19:08 +0100)]
Remove waitXXX() methods from websockets

The QWebSocketServer::waitForNewConnection() was just calling
QTcpServer::waitForNewConnection(), which was not correct because
a connection is only complete when the handshake succeeds.
Waiting for the handshake to complete would need a separate thread
for the handshake handling code, which would complicate the code a lot.
It was decided to leave out all waitXXX() methods from the module,
as it is easier to add this functionality later, then to remove it.

Change-Id: I778bae45b67f81e151ad2362f772c75e9f537ff0
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoEnable docs for QWebSocketProtocol
Frederik Gladhorn [Thu, 9 Jan 2014 18:22:20 +0000 (19:22 +0100)]
Enable docs for QWebSocketProtocol

There is no advantage to haveing the cpp files have _p.cpp
and as the public docs are in this file, rename it.

In order to have the docs generated there needs to be a namespace page.

Change-Id: Id6ef10ba39b7ea8b18d5d8e1cde03e566e682926
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoLink qml documentation and make it visible in creator
Frederik Gladhorn [Thu, 9 Jan 2014 18:06:18 +0000 (19:06 +0100)]
Link qml documentation and make it visible in creator

Change-Id: I39cd6aab1eb7dd154bc41a211984396540b6979c
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoFix typo
Frederik Gladhorn [Thu, 9 Jan 2014 18:05:38 +0000 (19:05 +0100)]
Fix typo

Change-Id: Ie7a6724b6075ed50f30072e637780234ee7fe48c
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse new connect syntax in a few places
Frederik Gladhorn [Thu, 9 Jan 2014 17:10:59 +0000 (18:10 +0100)]
Use new connect syntax in a few places

Change-Id: Iff0bd801a2dc4cce9b867e9a83320d0f9a716ab3
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoCorrect whitespace
Kurt Pattyn [Sat, 4 Jan 2014 14:44:44 +0000 (15:44 +0100)]
Correct whitespace

Change-Id: I9cefb6139c41317ba2eb1453b66411132efbee6a
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoCheck on max pending connections before accepting a connection
Kurt Pattyn [Sat, 4 Jan 2014 14:43:53 +0000 (15:43 +0100)]
Check on max pending connections before accepting a connection

Change-Id: Ia94540e131ce424e6306886861598f7f24f7577f
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd clarification in documentation
Kurt Pattyn [Sat, 4 Jan 2014 12:57:19 +0000 (13:57 +0100)]
Add clarification in documentation

Change-Id: Ib616c4c932cb2797036d2d821af7726fcfe2f877
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdapt to Qt coding style
Kurt Pattyn [Sat, 4 Jan 2014 12:56:01 +0000 (13:56 +0100)]
Adapt to Qt coding style

Change-Id: I137ac180b19228e0a5683e21ca87e3fe2db9f97b
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd Qml documentation
Kurt Pattyn [Fri, 27 Dec 2013 13:51:36 +0000 (14:51 +0100)]
Add Qml documentation

Change-Id: I38bfb0d87614fee1d508567a014a41e4be8cf6c2
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd limitation to write() methods
Kurt Pattyn [Fri, 27 Dec 2013 12:25:49 +0000 (13:25 +0100)]
Add limitation to write() methods

Change-Id: I5e1176711885ff698b9c05034785adc9a0612ccc
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd optimizations
Kurt Pattyn [Sun, 22 Dec 2013 17:24:21 +0000 (18:24 +0100)]
Add optimizations

Change-Id: Icd293f832e2d7a6272d4953c1994065d16222375
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd CMake unit tests for WebSockets
Laszlo Papp [Sun, 22 Dec 2013 18:15:01 +0000 (18:15 +0000)]
Add CMake unit tests for WebSockets

Change-Id: I1e1218d42880191439ed06f82d0053b0d9642b1c
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoFix the documentation by using the qdocconf term around
Laszlo Papp [Sun, 22 Dec 2013 17:54:18 +0000 (17:54 +0000)]
Fix the documentation by using the qdocconf term around

Change-Id: I8a999c27b71e23d5090d45c900ad3c3492e43668
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd extra documentation
Kurt Pattyn [Sun, 22 Dec 2013 16:15:51 +0000 (17:15 +0100)]
Add extra documentation

Change-Id: I1a3c0571faeabf2d05bc144628d186e5ff039014
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoCleanup whitespace
Kurt Pattyn [Sat, 7 Dec 2013 12:10:44 +0000 (13:10 +0100)]
Cleanup whitespace

Change-Id: Iaf5501838662b5f0191c21c608149a9348ce1c05
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoFix SSL examples
Kurt Pattyn [Sun, 22 Dec 2013 11:40:53 +0000 (12:40 +0100)]
Fix SSL examples

Only include ssl examples when ssl is enabled in Qt

Change-Id: I1ab8ec068980c0b6b9f19b47d05ae8fee3d17e79
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoCleanup code to comply with Qt style
Kurt Pattyn [Sat, 7 Dec 2013 11:54:09 +0000 (12:54 +0100)]
Cleanup code to comply with Qt style

- 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>
10 years agoAdd QML websockets plugin
Kurt Pattyn [Sun, 17 Nov 2013 14:20:08 +0000 (15:20 +0100)]
Add QML websockets plugin

Change-Id: I9454cf339f8af5515d3a91667d8c8ded3659d18b
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
10 years agoWrap SECURE_MODE in ifdef statements
Kurt Pattyn [Mon, 18 Nov 2013 22:52:09 +0000 (23:52 +0100)]
Wrap SECURE_MODE in ifdef statements

Change-Id: Ie936ea7db14ed34fa0cb53030447bba6cbc83a4e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoChange open method so that a web socket can be reopened
Kurt Pattyn [Mon, 18 Nov 2013 20:03:15 +0000 (21:03 +0100)]
Change open method so that a web socket can be reopened

Change-Id: I1c7059a8e581ce5179c00f187b03f59fbed63ba6
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd close code and close reason getter functions
Kurt Pattyn [Sun, 17 Nov 2013 14:30:34 +0000 (15:30 +0100)]
Add close code and close reason getter functions

Change-Id: I4eeab1521054e4f4921d25c6a990eeb7486443cb
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoWrap ssl implementation in ifdef statement
Kurt Pattyn [Thu, 7 Nov 2013 12:44:02 +0000 (13:44 +0100)]
Wrap ssl implementation in ifdef statement

Change-Id: I8ad6a7f29e639fd4e908acc6d3c2f8a393c72001
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd NON_SECURE_MODE parameter to QWebSocketServer constructor
Kurt Pattyn [Wed, 6 Nov 2013 20:53:55 +0000 (21:53 +0100)]
Add NON_SECURE_MODE parameter to QWebSocketServer constructor

Change-Id: I9e2e892b67490061f08d03b87a8dc3de288a09e5
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoChange url to localhost
Kurt Pattyn [Wed, 6 Nov 2013 20:39:38 +0000 (21:39 +0100)]
Change url to localhost

Change-Id: I6a33add4244d78e703f1d0c8ae39d42017383b26
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd sslEchoClient and sslEchoServer examples
Kurt Pattyn [Wed, 6 Nov 2013 19:00:39 +0000 (20:00 +0100)]
Add sslEchoClient and sslEchoServer examples

Add license headers

Change-Id: Ied74cb3db6ceed6c3f361e4afac860a7a3fb7676
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoSanitize include directives
Kurt Pattyn [Wed, 6 Nov 2013 12:20:16 +0000 (13:20 +0100)]
Sanitize include directives

Change-Id: I510e5e8f263d3ea08dd3d623b054d06b2911c6d6
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd html client for echo server example
Kurt Pattyn [Wed, 6 Nov 2013 10:28:16 +0000 (11:28 +0100)]
Add html client for echo server example

Change-Id: I1d6c47c9fc5e68f8eabf92db5a91e645319572fb
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd chat server example
Kurt Pattyn [Wed, 6 Nov 2013 09:49:04 +0000 (10:49 +0100)]
Add chat server example

Change-Id: Iec7e9be0d2e397737ab12b898ac31bca200f05c1
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd QtWebSockets/ directory to include to remove compiler warning
Kurt Pattyn [Mon, 4 Nov 2013 20:29:56 +0000 (21:29 +0100)]
Add QtWebSockets/ directory to include to remove compiler warning

Ubuntu qtlibinfix build generates a warning that qwbsockets_global.h
should be prefixed with QtWebSockets/

Change-Id: I3de7e359e5c0d856ca8c4486abb3fe745ab7d2cd
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd QWebSocketConfiguration to pre-cache socket settings
Kurt Pattyn [Mon, 4 Nov 2013 20:16:58 +0000 (21:16 +0100)]
Add QWebSocketConfiguration to pre-cache socket settings

Change-Id: Ibff22b277b89379dc31b0b7a8a02547e12bff58e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoPut fixed string length in test data
Kurt Pattyn [Sun, 3 Nov 2013 20:25:16 +0000 (21:25 +0100)]
Put fixed string length in test data

Change-Id: I01e24b17656278c77de431c5df49d2bbd996ee89
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse escape sequences to make VS happy
Kurt Pattyn [Sun, 3 Nov 2013 19:51:58 +0000 (20:51 +0100)]
Use escape sequences to make VS happy

Change-Id: I78dd73537e53ce5346b3a342c7a5d654cf9afb36
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoConvert string from utf8 to make VS happy
Kurt Pattyn [Sun, 3 Nov 2013 19:39:37 +0000 (20:39 +0100)]
Convert string from utf8 to make VS happy

Change-Id: I5cc2c3d0ffe237c6c0bf3f7ef37d28e08c2fd02e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove memory access error
Kurt Pattyn [Sun, 3 Nov 2013 19:07:20 +0000 (20:07 +0100)]
Remove memory access error

Change-Id: I72d689c08b89be72e6bcb8171aa40812f3c77250
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoChange masking to octet based processing
Kurt Pattyn [Sun, 3 Nov 2013 14:59:08 +0000 (15:59 +0100)]
Change masking to octet based processing

Change-Id: I1b450bf35760e8a5157cb1013f4668815640be5d
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse alignment on 4-byte boundary for masking input
Kurt Pattyn [Sun, 3 Nov 2013 14:19:57 +0000 (15:19 +0100)]
Use alignment on 4-byte boundary for masking input

Change-Id: I8efea21179245e8d8ed8095c327aef69676e2e1a
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoImprove speed of masking
Kurt Pattyn [Sun, 3 Nov 2013 12:28:14 +0000 (13:28 +0100)]
Improve speed of masking

Change-Id: Ieb1b28ac2ae37453da5b365587b8ab0e183ae269
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMake mask explicitly big endian
Kurt Pattyn [Sat, 2 Nov 2013 20:46:50 +0000 (21:46 +0100)]
Make mask explicitly big endian

Change-Id: I3ed5fa7322ae71d9350f4c1fa835f07117ea125e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoCorrect cast
Kurt Pattyn [Sat, 2 Nov 2013 18:59:09 +0000 (19:59 +0100)]
Correct cast

Change-Id: Ic87115f738ec50fbf7d63a5483dd25b1e451348b
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMake mask explicit little endian
Kurt Pattyn [Sat, 2 Nov 2013 12:17:06 +0000 (13:17 +0100)]
Make mask explicit little endian

Change-Id: I5e81ae12765010faf80caa265ab832af26a61f79
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMove non-public methods from websocketprotocol to private header
Kurt Pattyn [Sat, 2 Nov 2013 11:49:57 +0000 (12:49 +0100)]
Move non-public methods from websocketprotocol to private header

Add bigendian conversion of masks to unit tests

Change-Id: I3f23fb62aac1c6d06e5fafb1bd4bc47cc03765ce
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoSanitize .pro files
Kurt Pattyn [Sat, 2 Nov 2013 11:12:08 +0000 (12:12 +0100)]
Sanitize .pro files

Remove c++11 config flag if not necessary
Remove mac specific compiler settings

Change-Id: If3cb4c5396f6dd5679a9fc8cf8f8a81c34ad6f4c
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse export keyword in front of << operator
Kurt Pattyn [Sat, 2 Nov 2013 10:12:40 +0000 (11:12 +0100)]
Use export keyword in front of << operator

VS is very picky regarding the placement of the export keyword.

Change-Id: Ibde3de8e36e57bea854d6d6ff001259b4b0d8e7e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse QT namespace and forward declarations
Kurt Pattyn [Sat, 2 Nov 2013 09:53:25 +0000 (10:53 +0100)]
Use QT namespace and forward declarations

Change-Id: I67a0ee96f2e21ed441bb10f55c6bf8180245846b
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMove metatype declaration inside namespace
Kurt Pattyn [Sat, 2 Nov 2013 09:46:10 +0000 (10:46 +0100)]
Move metatype declaration inside namespace

Change-Id: I692f5cb10862199dfeaa94a6cedc62c5034e7a5d
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoInclude functional for std::greater
Kurt Pattyn [Sat, 2 Nov 2013 09:30:30 +0000 (10:30 +0100)]
Include functional for std::greater

Without this include, it does not compile on VS2012

Change-Id: I2400c789cbf11440dc8deea5d7b841f1122064f8
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove manual tests from tests.pro
Kurt Pattyn [Sat, 2 Nov 2013 00:39:38 +0000 (01:39 +0100)]
Remove manual tests from tests.pro

Change-Id: Id3464abd736cd663eefe3a08585515c03441b6f8
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoUse full path for includes
Kurt Pattyn [Sat, 2 Nov 2013 00:13:54 +0000 (01:13 +0100)]
Use full path for includes

Change-Id: I3f8d78527661d76050df5dd6ef71123190c1fecb
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMove Q_AUTOTEST_EXPORT in front of streaming operator
Kurt Pattyn [Fri, 1 Nov 2013 23:12:30 +0000 (00:12 +0100)]
Move Q_AUTOTEST_EXPORT in front of streaming operator

Change-Id: I24d336e960038dea235b371449b5a25ca86a7c93
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd null pointer checks
Kurt Pattyn [Fri, 1 Nov 2013 22:51:36 +0000 (23:51 +0100)]
Add null pointer checks

Change-Id: I3582e4ebc6aa275a10dd03b9189cafdc72dc236f
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoReplace qGreater with std::greater
Kurt Pattyn [Fri, 1 Nov 2013 22:13:27 +0000 (23:13 +0100)]
Replace qGreater with std::greater

Change-Id: I1c2e2f14bbbd1dfc8dc30d4a0cdff7ded0222113
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove ignoreSslErrors
Kurt Pattyn [Fri, 1 Nov 2013 21:48:39 +0000 (22:48 +0100)]
Remove ignoreSslErrors

Change-Id: I12dd46acb1bd7f71cf6df0eb2fae62bb3b655369
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoClose namespace at end of file
Kurt Pattyn [Fri, 1 Nov 2013 21:11:11 +0000 (22:11 +0100)]
Close namespace at end of file

Change-Id: Idc899e8081e31c3ba93893dc23abd89b4691f6e7
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRename autobahn to manual
Kurt Pattyn [Fri, 1 Nov 2013 20:27:39 +0000 (21:27 +0100)]
Rename autobahn to manual

Change-Id: I34bc23f60ee69c4005495defd22d2079a5206426
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove websocketcorsauthenticator tests from non-developer builds
Kurt Pattyn [Fri, 1 Nov 2013 20:17:40 +0000 (21:17 +0100)]
Remove websocketcorsauthenticator tests from non-developer builds

Change-Id: Ifadd89c4e51367b2bf04852bcb1d1d856543069e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRename autobahn to manual
Kurt Pattyn [Fri, 1 Nov 2013 19:56:16 +0000 (20:56 +0100)]
Rename autobahn to manual

Change-Id: I82236190d8af0ef75c605ac662d217c2f3d94dc6
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove unneeded files
Kurt Pattyn [Fri, 1 Nov 2013 17:55:23 +0000 (18:55 +0100)]
Remove unneeded files

Change-Id: Iff3e9b3abdc3e9159ec75ca5466aad6f93314aa4
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd correct license headers
Kurt Pattyn [Fri, 1 Nov 2013 17:17:43 +0000 (18:17 +0100)]
Add correct license headers

Change-Id: I789cd780697aedbca7a90a5991df00b2c7e9ec98
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRefine doc generation
Kurt Pattyn [Fri, 1 Nov 2013 16:35:16 +0000 (17:35 +0100)]
Refine doc generation

Change-Id: I9da90086c63b88a5664f241da2fa9687c3882ddf
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoReplace int with qintptr for socket descriptor
Kurt Pattyn [Fri, 1 Nov 2013 13:58:59 +0000 (14:58 +0100)]
Replace int with qintptr for socket descriptor

Change-Id: Ie554b90a62c504e3ef54fd2d36e93806f4871f81
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoInclude qml example on when quick is available
Kurt Pattyn [Fri, 1 Nov 2013 13:10:14 +0000 (14:10 +0100)]
Include qml example on when quick is available

Change-Id: I35956c27253819ddacbb2abd403b06f97e57bd31
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd functionality to ignore ssl errors
Kurt Pattyn [Fri, 1 Nov 2013 12:12:28 +0000 (13:12 +0100)]
Add functionality to ignore ssl errors

Change-Id: I81248b9af104c0b3d37c9cfcef250a102f4b1d32
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoImplement of secure web sockets
Kurt Pattyn [Thu, 31 Oct 2013 08:31:25 +0000 (09:31 +0100)]
Implement of secure web sockets

Change-Id: I1f96d5e4e327eae211fd6b458168e1f7607e2dcf
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoMark line as not relevant for code coverage
Kurt Pattyn [Sat, 19 Oct 2013 20:47:59 +0000 (22:47 +0200)]
Mark line as not relevant for code coverage

Change-Id: Id82bed1b3fa0ac0e48239894ad94b4d3778ee800
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd check for host() method
Kurt Pattyn [Sat, 19 Oct 2013 17:31:02 +0000 (19:31 +0200)]
Add check for host() method

Change-Id: I12d6761232193c62888681bb71ee0d5c6df9d3d2
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove CXX debug flags from project file
Kurt Pattyn [Sat, 19 Oct 2013 17:19:48 +0000 (19:19 +0200)]
Remove CXX debug flags from project file

The debug flags are normally set by the Qt build environment.

Change-Id: Icc61c7d5aeed7c73ac6c947d31d9eed71c02a606
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove const from return value of operator =
Kurt Pattyn [Sat, 19 Oct 2013 12:39:49 +0000 (14:39 +0200)]
Remove const from return value of operator =

Change-Id: I062756f8b337afee0b4f04bd6631d83bc560a607
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoPut assignment on separate line to avoid compiler optimization
Kurt Pattyn [Sat, 19 Oct 2013 12:33:24 +0000 (14:33 +0200)]
Put assignment on separate line to avoid compiler optimization

Change-Id: I981c2caba0d6a96ee54226ec001de6da8df9e5c2
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd flag to not optimize when in debug mode
Kurt Pattyn [Sat, 19 Oct 2013 12:25:25 +0000 (14:25 +0200)]
Add flag to not optimize when in debug mode

Change-Id: Iefaf4f6361042b3c3e5fb9bc620228e3e9cd3cbd
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdd test for constructor and assignment operator
Kurt Pattyn [Sat, 19 Oct 2013 11:19:04 +0000 (13:19 +0200)]
Add test for constructor and assignment operator

Change-Id: I4a475ca6e173a7102d465d821f1427d0b6d206d0
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoRemove QtWebSockets from include directives
Kurt Pattyn [Tue, 15 Oct 2013 12:04:43 +0000 (14:04 +0200)]
Remove QtWebSockets from include directives

Having QtWebSockets/ in front of the includes, results in a failing Windows build.

Change-Id: I3b7f9ee3f1f06d4588a25a02324d1e1f0e4fde81
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoReplaced getter methods of HandshakeResponse to be in line with Qt
Kurt Pattyn [Sun, 13 Oct 2013 19:27:50 +0000 (21:27 +0200)]
Replaced getter methods of HandshakeResponse to be in line with Qt

Change-Id: I23d9e75413c04a8a2f43ea0b940a0bab33d8d8de
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoCompleted unit tests for handshake request
Kurt Pattyn [Sun, 13 Oct 2013 15:16:56 +0000 (17:16 +0200)]
Completed unit tests for handshake request

Change-Id: I9558c0244e2285e7dc266bfcb3c51887fb7200d7
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoAdded unit tests for CorsAuthenticator
Kurt Pattyn [Sun, 13 Oct 2013 13:54:27 +0000 (15:54 +0200)]
Added unit tests for CorsAuthenticator

Change-Id: Id87b72bd6980aba5c134d7bfa7abf87d24e9a0ee
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoAdded remaining tests
Kurt Pattyn [Sat, 12 Oct 2013 18:59:40 +0000 (20:59 +0200)]
Added remaining tests

Change-Id: I006e84a06eb0315e81cdb389612f0be7ae494bd8
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoCompleted websocketframe unit tests
Kurt Pattyn [Sun, 13 Oct 2013 13:30:33 +0000 (15:30 +0200)]
Completed websocketframe unit tests

Replaced tab with space

Change-Id: Ifc47621069870123b5db458a1ba2bb0d66a5419d
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoCall other mask function instead of implementing it twice
Kurt Pattyn [Sat, 12 Oct 2013 19:00:17 +0000 (21:00 +0200)]
Call other mask function instead of implementing it twice

Change-Id: Ib196422ed7de2da420010e89347c98a02affef9a
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoRenamed getter methods to be Qt compliant
Kurt Pattyn [Sun, 13 Oct 2013 11:01:40 +0000 (13:01 +0200)]
Renamed getter methods to be Qt compliant

Renamed all getXXX() methods in QWebSocketFrame to XXX() methods to be Qt compliant.

Change-Id: Iea47bcf1772a755f303065ff12d07b0ba99d4aac
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoRenamed getters in HandshakeRequest to comply with Qt
Kurt Pattyn [Sun, 13 Oct 2013 14:03:02 +0000 (16:03 +0200)]
Renamed getters in HandshakeRequest to comply with Qt

Renamed all getXXX() methods by XXX() methods.

Change-Id: I54f52eb5dfc7342b7aecafb3ec65aa54e7b20d13
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoExport mask functions to be usable for unit testing
Kurt Pattyn [Sat, 12 Oct 2013 19:01:17 +0000 (21:01 +0200)]
Export mask functions to be usable for unit testing

Change-Id: If72486c4543240448a8abdfa3cc7e96331ed0b05
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdapted auto.pro to include websocketframe unit test
Kurt Pattyn [Sun, 13 Oct 2013 10:26:56 +0000 (12:26 +0200)]
Adapted auto.pro to include websocketframe unit test

Change-Id: Ife8486a480d2a56a77d96ca6d331994d8f7ea0a1
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdded unittests for QWebSocketProtocol
Kurt Pattyn [Sat, 12 Oct 2013 19:02:02 +0000 (21:02 +0200)]
Added unittests for QWebSocketProtocol

Added copyright headers

Change-Id: Idef8307ef80db9e5805b880514bd3a9c18ddf125
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdded TODO explaining some optimizations
Kurt Pattyn [Sun, 13 Oct 2013 10:15:07 +0000 (12:15 +0200)]
Added TODO explaining some optimizations

Moved documentation from .h to .cpp
Export QWebSocketFrame class for unit testing
Added unit tests for web socket frames

Change-Id: I824da86fed37fbcd1f5671a21467af7a66f5c019
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdded const to local variable
Kurt Pattyn [Sun, 13 Oct 2013 10:13:16 +0000 (12:13 +0200)]
Added const to local variable

Change-Id: I3f62335945ce21ba950328473a2ea180c1ca6ae8
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agomake use of the new Q_NULLPTR keyword & shorten if(ptr) conditions
Steven Ceuppens [Thu, 10 Oct 2013 14:05:54 +0000 (16:05 +0200)]
make use of the new Q_NULLPTR keyword & shorten if(ptr) conditions

Change-Id: I4a71909134032d10b398ede74c431964bce7d675
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
10 years agoAdded checks for valid control frames
Kurt Pattyn [Thu, 10 Oct 2013 19:12:27 +0000 (21:12 +0200)]
Added checks for valid control frames

Also added extra checks on signals
Added extra comments
Cleaned up superfluous TODOs

Change-Id: I8ec760f0984bee4bd4cc757ce3ef6d7ed1c01102
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoAdded boundary checks on string lists
Kurt Pattyn [Thu, 10 Oct 2013 19:10:57 +0000 (21:10 +0200)]
Added boundary checks on string lists

Change-Id: I366ed84e54ebd49d0a1a202e5131eab4b486b4c5
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
10 years agoImmediately stop processing after reception of a control frame
Kurt Pattyn [Thu, 10 Oct 2013 19:10:28 +0000 (21:10 +0200)]
Immediately stop processing after reception of a control frame

Change-Id: Ifdd9db4bb251d9a58a0739ce269591b2d9438bf4
Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>