lwip-users
[Top][All Lists]
Advanced

[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 14:56:31 +0100
User-agent: Mutt/1.5.11

On Thu, Jul 06, 2006 at 05:26:34AM -0700, Jonas L wrote:
> 
> > You need to call tcp_output() after tcp_write() to try to put the data 
> > on the wire.
> 
> Alright...there is certainly something I don't get here. The description for
> tcp_write says:
>  * Write data for sending (but does not send it immediately).
>  *
>  * It waits in the expectation of more data being sent soon (as
>  * it can send them more efficiently by combining them together).
>  * To prompt the system to send data now, call tcp_output() after
>  * calling tcp_write().
> 
> I am interpreting this like it is possible to call tcp_write as many times
> as I need, before transmitting?

Yes.  tcp_write() will queue it for sending, tcp_output() will try to
send it.  Apologies if I misunderstood your original problem.

Kieran




reply via email to

[Prev in Thread] Current Thread [Next in Thread]