delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/23/03:10:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 23 Mar 2010 09:09:48 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: recvfrom + MSG_PEEK = broken?
Message-ID: <20100323080948.GI32321@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4BA7085D DOT 3050307 AT cwilson DOT fastmail DOT fm> <20100322110352 DOT GA32321 AT calimero DOT vinschen DOT de> <4BA7D40E DOT 5010504 AT etr-usa DOT com>
MIME-Version: 1.0
In-Reply-To: <4BA7D40E.5010504@etr-usa.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Mar 22 14:33, Warren Young wrote:
> On 3/22/2010 5:03 AM, Corinna Vinschen wrote:
> >The last time I had problems with MSG_PEEK was back in 2006.  Curious
> >how seldomly it's used, apparently.
> 
> Peeking is evil:
> 
> 	http://tangentsoft.net/wskfaq/newbie.html#peeking
>
> [...]
>  The other
> problems the FAQ item references may be Windows-specific, but they stem
> from perfectly reasonable stack design decisions

And then there's that:

 "Most network programs running today on Linux, Unix, and OS X still use
  nothing but the plain old BSD Sockets API.  Viewed that way, even
  Winsock 1.1 looks modern, new, and powerful."
                    ^^^^^^  ^^^      ^^^^^^^^

I would have laughed, if it wouldn't be so sad.  Last time I had to do
with Winsock (yesterday, I think) it was still an ugly, UGLY mess
compared to the BSD socket API.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019