Hello,
I’m programming a custom dynamic library which will allow me to use QTcpSocket with my custom parameters without retyping them every time I need it. The joys of “anticipated laziness”… However, a question came up to me; let me explain it.
A user has to send a few mebibytes of data to a remote computer. Both the sender and the receiver use a program which connects them to the network through a QTcpSocket. Because of TCP/IP protocol set and because of our current technology, data won’t be sent and received instantaneously; actually, data will progressively be transmitted and this operation may take several minutes.
My question is: how will each of both QTcpSockets behave in this case? Will sending socket’s signal “bytesWritten” be emitted only when the whole data set has been sent or every time a packet has been transmitted? Will receiving socket’s signal “readyRead” be emitted only when the whole data set is available for reading or every time a packet has been received? Am I forgetting something important for this case?
Thank you in advance for your help.
Adishatz!
↧