[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] closing a connection in raw mode
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] closing a connection in raw mode |
Date: |
Mon, 10 Dec 2007 23:31:57 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.8-1.1.fc3.4.legacy (X11/20060515) |
Siva Velusamy wrote:
Hello -
Could anyone point me to the correct way to close a connection using
tcp_close in RAW mode?
In some code I have here, I've been checking if the recv callback is
invoked with a NULL pbuf. In fact code I have here also only closes the
connection if the err_t argument is ERR_OK, although I can't remember
why... a quick look in the lwip code for TCP_EVENT_RECV doesn't reveal any
reason why I check it either, since the only calls always use ERR_OK. I
believe it came from an lwip example somewhere.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------ Opinions==mine