Separated error() and tcpError() signals: the former is application level error, the latter is transport level error. It allows us to track ConnectionRefused, RemoteHostClosed errors, for example.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Removed Qt::UniqueConnection in initTcpSocket. Since this function gets called once per TCP socket instance passed to QWsSocket, UniqueConnection is redundant and not needed.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Added IPv6 address parsing, localhost IPv6 address, removed IPv4 regexp in favor of built-in Qt address parsing.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Removed QWsSocket::error and QTcpSocket::error signals coupling.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Refactored SSL code. Client and Server example projects now work in encrypted and non-encrypted modes.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Simplified protocol choice (Tcp/Tls).

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Merge pull request #26 from me21/master

Some code cleanup, added IPv6 address parsing. Refactored SSL code.