UDP is "message based", you provide the whole payload and it will be
sent in a datagram.
TCP is "stream" based, data will be sent as it thinks it is best. As
long as you don't set TCP_WRITE_FLAG_COPY in apiflags, tcp_write() will
handle your data by building a PBUF_REF for each call and chaining
Shouldn't be a problem. Just call tcp_write with the buffer pointer and
size and LWIP will take care of the rest.
On Wed, Dec 16, 2015 at 10:00 PM, Yuxin Ren wrote:
> Hi,
>
> I am using lwip raw API.
> I want to send TCP packet without copy.
> In my case, my application
Ewa,
Po co przysłałaś nam rzut kuchni z odstawioną lodówką?
Wywal je po prostu...
J.
-Original Message-
Shouldn't be a problem. Just call tcp_write with the buffer pointer and size
and LWIP will
take care of the rest.
On Wed, Dec 16, 2015 at 10:00 PM, Yuxin Ren
Hi,
I am using lwip raw API.
I want to send TCP packet without copy.
In my case, my application generates the TCP payload, but the payload
is fragmented.
For example, it generates http header and http data, but the header
and data are not continuous in memory.
Can I send such payload as a pbuf