delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
From: | =?iso-8859-1?Q?Boris_Sch=E4ling?= <boriss AT web DOT de> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | RE: select() implementation question |
Date: | Tue, 20 Jun 2000 01:10:48 +0200 |
Message-ID: | <LOBBKDBPKEGJJFKNFHKBKECEDEAA.boriss@web.de> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
In-Reply-To: | <20000619143403.A16629@cygnus.com> |
Importance: | Normal |
> -----Original Message----- > From: cygwin-owner AT sourceware DOT cygnus DOT com > [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of Chris Faylor > Sent: Monday, June 19, 2000 8:34 PM > To: cygwin AT sourceware DOT cygnus DOT com > Subject: Re: select() implementation question > > > select() on a socket uses the winsock version of select it does not > establish connections, AFAIK. > [...] I've written a small C program: It initializes a struct sockaddr_in, calls socket(), bind(), listen() and saves the socket in a fd_set. Now there is exact one listening port. Then select() is called (and the fd_set is passed to select()). A second random port is opened for listening. When select() returns "something" connects to this second random port and a connection is established. After that this listening port is closed but the connection remains. I have no problems to use "my" listening port - everything works well. I just noticed that there are some additional unusual things happening so I want to make sure that this is cygwin and not a bug in my application. Can anyone confirm this behaviour of network applications under cygwin? If you like I can send you the C source code: one file, 50 lines, nothing special. It would be nice to know that this is select()'s standard behaviour then I could happily go on coding. Boris -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |