Thanks! The snippet I sent was actually within a readyRead(), and that was the problem---I was reading all the available bytes from the readyread()--I had to get more readyRead() signals to read more bytes, but I was stuck in my slot function, so never got them.
I got rid of all the byte counting, and now just signal the end of the transmission. Its much cleaner code, and it actually seems to work.
And as far as QByteArrays...in reality, my roots are in C programming--well, to be honest, they're in Fortran--, and when I start flailing, I revert to C habits. My new code uses a QByteArray to read the new data--no mallocs, honest!
Bookmarks