lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] One question about codes of tcp_input in tcp_in.c


From: mud dog
Subject: Re: [lwip-devel] One question about codes of tcp_input in tcp_in.c
Date: Mon, 24 Oct 2005 20:11:03 +0800

That seems right. Maybe some ack segment of new window has come,
tcp codes update the window, then call tcp_output to see there's some
datas to send.
Thanks

2005/10/24, Kieran Mansley <address@hidden>:
> On Sun, 2005-10-23 at 14:43 +0800, mud dog wrote:
> > Hi all:
> > When reading the tcp codes of lwIP, I made a question.
> > After calling the tcp_process in tcp_input, we determine
> > the return status and flags of tcp_process, when err != ERR_ABRT
> > and recv_flags' TF_RESET,TF_CLOSED is not set, call the
> > tcp_output(pcb)
> > to send what? why do this?
>
> I haven't looked at the code in detail to answer this, but my guess is
> that it is to try to send any data that were queued because, for
> example, there was no available TCP window space to send them.  After
> receiving and processing a packet, it is likely that the acknowledgement
> contained within it will allow more data to be sent, and so
> tcp_output(pcb) is called.
>
> Kieran
>
>
>
> _______________________________________________
> lwip-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-devel
>




reply via email to

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