[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] tcp_write
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] tcp_write |
Date: |
Thu, 6 Jul 2006 12:02:55 +0100 |
User-agent: |
Mutt/1.5.11 |
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