This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Using select() with a non cygwin DLL
- To: "'cygwin at sources dot redhat dot com'" <cygwin at sources dot redhat dot com>
- Subject: Using select() with a non cygwin DLL
- From: "Goeritz, Stefan" <Stefan_Goeritz at bmc dot com>
- Date: Mon, 27 Nov 2000 12:37:06 -0600
> 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@sourceware.cygnus.com