Hi,
I’m developing a client-server application. Therefore I’m using the QWebSocket class to achieve binary transparency and bidirectional data transfer. To listen for incoming connections I’m using the QWebSocketServer class which works pretty nice so far. (basically the echoclient and echoserver example)
Now my question:
I would like to have a thread for every incoming connection (the QTcpServer class does support this) but the documentation says the returned QWebSocket* pointer by nextPendingConnection() cannot be used from another thead.
Is this somehow possible and how?
Bookmarks