I have a QTcpSocket in a separate thread sending a lot of data. Some of these applications are distributed over the network.
How can I determine if my network is congested and my socket cannot send anything else? Will QTcpSocket buffer all data, how can I see the size of my buffered data that will be sent to the queue? Will this be equal to bytesToWrite ()? Is there a maximum bytesToWrite ()?
If QTcpSocket starts discarding the data, what will it be: the oldest in the buffer queue, the newest in the buffer queue, ...?
source share