[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] how to send fragmented data via TCP?
From: |
Sergio R. Caprile |
Subject: |
Re: [lwip-users] how to send fragmented data via TCP? |
Date: |
Fri, 18 Dec 2015 09:29:44 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
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 it to
other pbufs waiting in line to be sent.