delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/03/15:43:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 3 Jun 2002 15:42:43 -0400
From: Christopher Faylor <cgf-noreply AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Duplicating Unix Domain Sockets
Message-ID: <20020603194243.GD26723@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT GSO DOT 4 DOT 30L DOT 0206031533500 DOT 20768-100000 AT department-of-alchemy DOT mit DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.30L.0206031533500.20768-100000@department-of-alchemy.mit.edu>
User-Agent: Mutt/1.3.23.1i

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019