title: Multiple writes to QTcpSocket
body: <p>I have a server and client program where it's convenient for the server to send out two messages to each client.  The server calls the write() function on each of the client sockets twice in a row.  On the client side, the readyread signal occurs, but when the client reads, it only gets the first message.  I fixed this by adding waitForBytesWritten() before each write() the server does, and this seemed to fix the problem.  However, I don't know why I can't just write to the buffer twice.  I would think there is a better way to solve this problem.</p>