Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
4.7.4
-
None
Description
With Qt's socket implementation at the moment only the creating thread can send or receive data on QTcpSockets and QUdpSockets.
A new feature is requested to be able to use one socket from two threads. One thread reads the receiving pipe and forwards messages to interested application objects and any other second thread can send data on the sending pipe as long as the sending mutex is locked first.
This is thread safe at the lower level socket API and is a common design pattern with other third party multi-platform socket libraries.