Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jul : TIdTCPClient splits data into 1024 byte pakets??

www.cryer.info
Managed Newsgroup Archive

TIdTCPClient splits data into 1024 byte pakets??

Subject:TIdTCPClient splits data into 1024 byte pakets??
Posted by:"Marc" (marc.breu..@giant-online.de)
Date:Sun, 23 Jul 2006 22:22:59

Hello,
I need to send data pakets of 1400 bytes from a TIdTCPClient to a
TIdTCPServer.
If I send one paket, the server receives two, one with 1024bytes and one
with the rest.
As the data pakets are created by different threads and coming in very fast,
the server sometimes mixes them up and doesn't put the right ones together.
So first I receive two pakets with the small rest and then the two 1024bytes
pakets.
I thought that the max paket size has something to do with the MTU, which is
1500 on both machines. So is there any way to increase the paket size to
more than 1024 bytes?
Or any other easy way to ensure the right pakets are combined?

Thanks
Marc

Replies:

www.cryer.info
Managed Newsgroup Archive