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

css - Text drops down with smaller window -

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

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -