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

2015-12-18 Thread Sergio R. Caprile
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

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

2015-12-17 Thread Dinesh Pandey
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

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

2015-12-17 Thread JZarnow
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

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

2015-12-16 Thread 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