lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] how to send fragmented data via TCP?


From: Dinesh Pandey
Subject: Re: [lwip-users] how to send fragmented data via TCP?
Date: Thu, 17 Dec 2015 22:01:27 +0530

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 <address@hidden> wrote:
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 chain via TCP?
Or is there any other method to achieve this?

I think in UDP, this is simple.
As udp_send receives pbuf pointer as an argument, the application can
construct the pbuf chain and pass it to udp_send.

Thanks a lot.
Yuxin

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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