No way. There is such a thing called
MTU . The package cannot be greater than MTU in principle (usually about half a kilobyte).
In any case you need the upper layer Protocol to communicate the message and not the thread (in principle you can certainly parenthesis to count, but this is not a solution). Often messages leave the line that are guaranteed not to get into the data or transmit the message size.
PDA a beginner I would recommend
qtWebsocket.
Thank you for the link. I see. - wilfred_Schinner59 commented on October 3rd 19 at 03:19