lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Detection remote closed TCP connection


From: Jonathan Larmour
Subject: Re: [lwip-users] Detection remote closed TCP connection
Date: Wed, 28 May 2008 13:49:35 +0100
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Kieran Mansley wrote:
> On Wed, 2008-05-28 at 13:43 +0100, Jonathan Larmour wrote:
>> Yes, if the connection is closed remotely you will read 0 bytes (as opposed
>> to no data available when you get the EWOULDBLOCK error). If you write to
>> it when closed you will get an error.
> 
> Although if the remote end has closed gracefully, using a FIN rather
> than a RST, you'll get no error when writing to the socket as the
> connection is still open in that direction.

Sorry, yes true.

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.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

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