This is a bit of the exchange of data via qDebug()

Bytes to read: 54
2 bytes written to socket
Bytes to read: 91
10 bytes written to socket
Bytes to read: 954
9 bytes written to socket
Bytes to read: 56
10 bytes written to socket
Bytes to read: 932
10 bytes written to socket
Bytes to read: 1024
Bytes to read: 26

To me it looks like the receive buffer is 1024 bytes maximum, but since the data inbound is not of a particular size, adding it to an array/buffer and then waiting for a specific size to be filled doesn't work with this particular applciation.

When data comes in from the socket, it's read directly to a QPlainTextEdit widget (via append) with the cursor position being updated. Though when the data comes on the socket and it's greater than 1024 (as the last two lines show) then the data is sort of split up funny. Perhaps it's an issue more with my cursor placing than with the packets that are streaming in?

Below is the code that happens after I ui->txtOutput.appendPlainText(data);
Qt Code:
  1. QTextCursor c = ui->txtOutput->textCursor();
  2. c.movePosition(QTextCursor::End);
  3. ui->txtOutput->setTextCursor(c);
To copy to clipboard, switch view to plain text mode 

Example of where the text get's broken up:

246: Fir <999> May 18: Ranger meat tweak
247: Angrybeard <37> May 26: Metlof/wolf resets
248: Emeritus <26> May 26: last
249->Emeritus <26> May 26: Xenophobe
250: Sic <25> May 27: the
mysterious shop

The "mysterious shop" should be up at the same line as "May 27: the "

Perhaps something else is happening that makes the text break funny?