lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] TCP interface to HTTP client


From: Kieran Mansley
Subject: Re: [lwip-users] TCP interface to HTTP client
Date: Fri, 13 Jul 2007 11:19:30 +0100

On Fri, 2007-07-13 at 11:52 +0200, Achuth Kamath wrote:
> Hi ,
> I have one doubt regarding the interface of LWIP TCP module to HTTP
> client.
> The case is where we have a HTTP client on top of LWIP stack, and are
> downloading a web page from HTTP server.
> In one special case, lwip_recvfrom() returns NULL., on enabling prints
> we see, 
> "lwip_recvfrom(4): buf == NULL!"
> I am not sure why it is returning NULL, looks like netconn_recv()
> returns NULL.
> 
> My question is, in this case, should the application close the TCP
> connection, calling lwip_close()? Or what best can the application do?
> Also, what might be the possible reasons for netconn_recv() to return
> NULL?

Usually means that the TCP connection has been closed and so there will
be no more data to recv, so calling lwip_close() is probably the right
thing to do if you want to close it in the other direction too.

Kieran





reply via email to

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