From: Christopher Faylor <cgf-noreply@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Duplicating Unix Domain Sockets
Date: Mon, 03 Jun 2002 12:42:00 -0000 [thread overview]
Message-ID: <20020603194243.GD26723@redhat.com> (raw)
In-Reply-To: <Pine.GSO.4.30L.0206031533500.20768-100000@department-of-alchemy.mit.edu>
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/
next prev parent reply other threads:[~2002-06-03 19:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-03 12:37 David E Euresti
2002-06-03 12:42 ` Christopher Faylor [this message]
2002-06-03 13:52 David E Euresti
2002-06-03 13:59 ` Christopher Faylor
2002-06-03 23:17 ` egor duda
2002-06-04 5:41 ` Robert Collins
2002-06-05 12:30 ` David E Euresti
2002-06-04 8:07 ` David E Euresti
2002-06-04 8:33 ` egor duda
2002-06-04 8:40 ` David E Euresti
2002-06-03 15:19 David E Euresti
2002-06-03 17:01 ` Bob Friesenhahn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020603194243.GD26723@redhat.com \
--to=cgf-noreply@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).