Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: "Goeritz, Stefan" To: "'cygwin AT sources DOT redhat DOT com'" Subject: Using select() with a non cygwin DLL Date: Mon, 27 Nov 2000 12:37:06 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" > Hello everybody, > > I am trying to integrate my own (cygwin) program into an application that > provides a DLL that contains a function > returning a socket file descriptor that my own program is supposed to > select on. > When my cygwin program tries to select on this descriptor, select() > always returns with (-1). > My program is built with cygwin 1.1.5 on NT4.0/sp4 and linked with > -lwsock32 which > contains the select() call. > > I am assuming that there are different namespaces for sockets in the app > that I intergrate > in and my own program, is that right ? Can I somehow bring this scenario > to work ? > Do I have to use one of the functions cygwin_attach_handle_to_fd to > convert the socket FD > that I get from the application into the cygwin namespace ? Does anyone > has experience with that, > I was not able to find more documentation on this funtion that explains > the function > parameters in detail. > > I would appreciate any comment or help on this, I am trying to solve this > for a longer > time already ... > > > Tschau > > > Stefan Goeritz. > > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com