lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] netconn_close()


From: Marko Panger
Subject: Re: [lwip-users] netconn_close()
Date: Tue, 27 May 2008 21:21:53 +0200
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

Jonathan,

First of all - thanks !

How could I prevent from waiting forever ? I imagine by setting the conn->recv_timeout. Is there
a api call for this or can I access it directly just before calling netconn_recv() ?

marko

Jonathan Larmour wrote:
Marko Panger wrote:
  
HI,

I'm using lwip1.3.0 in a RTOS environment with LWIP_SO_RCVTIMEO == 1 and
the netconn api.

Whe I call the netconn_recv the function blocks with timeout 0 (forever)
on a mailbox. Now, how do I shut down
the connection form my side ? I've tried to call netconn_close() which
seems to post a semaphore but no task
is pending on it.

Am I doing something wrong ?
    

Sort of :-). Don't wait forever if it's not ok to wait forever! There is at
present no way to shut something like that down for UDP.

Maybe something could be added in netconn_delete (netconn_close is specific
to TCP) and/or netconn_disconnect and/or netconn_free. But there isn't
anything there now.

Jifl
  


reply via email to

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