lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] tcp_write function merges 2 different packets while sen


From: goldsimon
Subject: Re: [lwip-users] tcp_write function merges 2 different packets while sending
Date: Sat, 21 Dec 2019 09:53:16 +0100
User-agent: K-9 Mail for Android


Urvi wrote:
>[..]
>
>But when I send 1 data packet of size=6 bytes (call tcp_write() and
>then
>tcp_output()) and next packet of size=45 bytes (call tcp_write() and
>then
>tcp_output()), then at server side it receives as a one single data
>packet
>of size=51 bytes; due to this my complete data packet becomes garbage
>and I
>got failure in communication. (this is just one packet example, but it
>happens often).
>
>
>How to solve this issue?

That's expected TCP behaviour, not an lwIP issue. Of you need datagrams 
strictly separated, use UDP.

Regards,
Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]