www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Mon, 28 Mar 2005 10:36:42 -0600 |
From: | Brian Ford <ford AT vss DOT fsi DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
To: | Peter Stephens <ptfoof AT sbcglobal DOT net> |
cc: | cygwin AT cygwin DOT com |
Subject: | RE: recv and errno during a connection reset/closed by peer |
In-Reply-To: | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAUKQItienSEKG+9226yKd5cKAAAAQAAAAdHONqHuj7UCiZ/oSiFrXiwEAAAAA@sbcglobal.net> |
Message-ID: | <Pine.CYG.4.58.0503281033060.3768@fordpc.vss.fsi.com> |
References: | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAUKQItienSEKG+9226yKd5cKAAAAQAAAAdHONqHuj7UCiZ/oSiFrXiwEAAAAA AT sbcglobal DOT net> |
MIME-Version: | 1.0 |
X-OriginalArrivalTime: | 28 Mar 2005 16:34:44.0348 (UTC) FILETIME=[0C4DC3C0:01C533B4] |
On Fri, 25 Mar 2005, Peter Stephens wrote: > I boiled this down to nothing(see below). I must be missing something > basic. Yup. > I tried the suggestions made so far and it never gets to: > > printf(" >>> ERRNO %i\n", errno); > > I would expect that on a disconnect (I use putty in telnet or raw mode) it > would return -1 whether it is doing MSG_PEEK or an actual retrieval. No > luck. Nope (http://www.opengroup.org/onlinepubs/7990989775/xns/recv.html): "If no messages are available to be received and the peer has performed an orderly shutdown, recv() returns 0." I think that's what you're missing. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained pilot... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |