Qt-interest Archive, August 2007
[OT] Not directly Qt related Q-TCP/UDP-Sockets. Buffer?
Message 1 in thread
Hi,
perhaps someome can give me a hint. I send data through a TCP-Socket.
So far so good. But my data is 'chopped' into chunks in a strange way.
When I send my data, the first 'package', which arrives on the other
side is 65536 bytes, the second 32768 bytes and the third 15919 bytes.
Fist of all, I though TCP is stream oriented, so why the packages?
I thought it has something to do with the read buffer size, but this
should be unlimited.
And even if there is somewhere a 64K buffer limit, why has the
second package only 32K and does not contain the whole rest?
Is there something I can do, that I get the while data in one read?
Guido
--
[ signature omitted ]
Message 2 in thread
Forget it, I got it.
Guido
On Sat, Aug 04, 2007 at 02:37:53PM +0200, Guido Seifert wrote:
> Hi,
> perhaps someome can give me a hint. I send data through a TCP-Socket.
> So far so good. But my data is 'chopped' into chunks in a strange way.
> When I send my data, the first 'package', which arrives on the other
> side is 65536 bytes, the second 32768 bytes and the third 15919 bytes.
--
[ signature omitted ]