Re: Broken TCP/IP packets



On Apr 11, 12:27 am, "MisterE" <v...@xxxxxxxxxxxxxxx> wrote:
So your reciveing end simply must be written so as it keeps on reading
from the TCP stream up until you have 20 bytes, and store excess bytes
it may have read for the next call. This can easily be implemented
with a ring buffer structure and as many calls to recv() as needed.

If you try to circumvent this, you are fighting against TCP and
potential oddities/requierements of the unterlaying network along the
comunication path.

No converter will break up a 20 byte burst into multiple packets. If this is
happeneing its the worst converter I have ever seen. If the packets were
2,000 bytes then maybe, but I have never seen a converter send while data is
still being recieved. I suspect the user has set a setting wrong on the
device to only allow 10 byte buffer or something. We have 300byte packets
and have NEVER seen on brocken out of hundreds of thousands (I programmed it
to log these and it has never happened).

What converter in market you will recommend ?

ali

.



Relevant Pages

  • Re: Broken TCP/IP packets
    ... from the TCP stream up until you have 20 bytes, ... No converter will break up a 20 byte burst into multiple packets. ... happeneing its the worst converter I have ever seen. ...
    (comp.arch.embedded)
  • Re: Broken TCP/IP packets
    ... with a ring buffer structure and as many calls to recvas needed. ... No converter will break up a 20 byte burst into multiple packets. ... i think it should be Ok as TCP/IP is never meant for real time anyway. ...
    (comp.arch.embedded)