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 <[email protected]> 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/lwip-users >
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
