Duplicating Unix Domain Sockets

Christopher Faylor cgf-noreply@cygwin.com
Mon Jun 3 12:42:00 GMT 2002


On Mon, Jun 03, 2002 at 03:36:56PM -0400, David E Euresti wrote:
>Hello,
>	So I've been working on this passing file descriptor between
>processes thing. And I've gotten something that works well.  I'm using
>cygwin_attach_handle_to_fd to create the file descriptor.  Unfortunately I
>can't seem to see how to create a Unix Domain socket (AF_UNIX) using this.
>I've traced through all the source and can't seem to find the place to do
>it.

cygwin_attach_handle_to_fd is an interface intended for use with a user-level
program that wants to associate an existing *windows handle* with a cygwin fd.

If you are trying to add functionality to cygwin to allow fd passing
then you shouldn't be using this function.  It is not intended for use
with cygwin-specific things like unix-domain-sockets.  Those really
exist only in the cygwin domain and they are already associated with an
fd.

If you are attempting to do this as a user program rather than as a modification
to the cygwin DLL, then you are probably out-of-luck.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list