delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/30/22:43:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3AEE22F0.2E034CE@ece.gatech.edu>
Date: Mon, 30 Apr 2001 22:44:00 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: cvs broken on win2k after recent cygwin upgrade: "The descriptor is
a file, not a socket"
References: <f5by9twn4mm DOT fsf AT cogsci DOT ed DOT ac DOT uk> <010e01c0bafa$f04d9320$2b904f86 AT trinity> <f5bofu2cm9s DOT fsf AT cogsci DOT ed DOT ac DOT uk> <07fd01c0c3dc$cf05f730$0200a8c0 AT voyager> <f5bhezs4e2c DOT fsf AT cogsci DOT ed DOT ac DOT uk> <20010414161237 DOT A4149051 AT MELON> <f5b8zl23731 DOT fsf AT cogsci DOT ed DOT ac DOT uk> <20010415090728 DOT B8359 AT redhat DOT com> <20010415184450 DOT V20490 AT cygbert DOT vinschen DOT de> <20010415153631 DOT D9015 AT redhat DOT com> <20010415225227 DOT W20490 AT cygbert DOT vinschen DOT de>

Corinna Vinschen wrote:
> > >That's not quite correct. Cygwin uses ws2_32.dll if available.
> > >The reason is the Winsock2 functionality used for duplicating
> > >sockets. The old method is still implemented as a fallback, though.
> >
> > How is that implemented?  I don't see it in the code.  Where is
> > that implemented below?
> 
> It's not that obvious. Since WsaStartup is called with a requested
> version of 2.2 in wsa_init(), the wsock32 code asks if winsock 2 is
> available on the system. If so, it will be used. The reason for
> loading ws2_32 explicitly in Cygwin is that the function pointers of
> the special winsock 2 functions couldn't be resolved otherwise.
> 
> > Also the two tests for ws32_handle and wsock32_handle look reversed.
> >
[snip]
> 
> It is. WsaStartup should only be called once regardless whether the
> first winsock function is a version 1.1 or version 2 function. The
> wsa_init function is only called if it's not already called from the
> other entry point.

I'm confused.  Corinna, does your statement mean that the code in
autoload.cc is correct as it is now (which is the same as it was at the
time this email was written) --- or does autoload.cc need to be
"corrected" to unreverse the ws32_handle and wsock32_handle tests?  
(I'm going through my cygwin inbox trying to tie up some open threads
w.r.t "my" packages)

--Chuck

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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