c++ - QTcpSocket: multiple ReadyReads when sending large file -


i want send 1mb file @ 200kb/second (5 second transfer) using qtcpsocket. readyread slot function first reads file size (header), starts thread blocks while reading file_size bytes socket. but, since readyread slot function ends before file transfer does, won't there new calls readyread function (new readyreads emitted) interfere?

i read here: how make sure readyread() signals qtcpsocket can't missed? while in slot function no new readyreads emitted.

an obvious solution own problem disconnect() readyread() signal slot function inside slot function, if that's possible.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -