This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Using select() with a non cygwin DLL




> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]