On Wed, Jul 05, 2006 at 11:40:43PM -0700, Jonas L wrote: > > I'm trying to send a chain of data using tcp_write. It seems like when I call > tcp_write twice bad things happen. Packet is never transmitted though both > calls return with ERR_OK. > > That means that the only way to send data that is not in one piece is to > send a small piece, wait for it to transmit then call tcp_write again when > the first part is away. > > Is this normal, and is there any solution except copying to one piece?
You need to call tcp_output() after tcp_write() to try to put the data on the wire. It may not always be able to (no TCP window for example) so you may need to try again later. Kieran _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
