On Saturday, 30 May 2020 02:03:00 PDT Ghobad Zarrinchian wrote: > Now, I know that i should separate my file into multiple parts and send > each part separately. I recently experienced sending several messages using > consecutive write commands, like below: > > socket.write(data1); > socket.write(data2); > socket.write(data3); > ... > > However, the receiver only receives the last message (e.g. data3) and other > messages are gone!. I also used 'socket.waitForBytesWritten()' after each > 'socket.write()', but it didn't help. For this reason, i decided to send > all data as one message. How can i execute consecutive writes to a socket?
Exactly like you did. So you did send all three messages. The problem was in the receiver. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest