From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13000 invoked by alias); 3 Jun 2002 19:42:39 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12993 invoked from network); 3 Jun 2002 19:42:38 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 3 Jun 2002 19:42:38 -0000 Received: from redhat.com (vpn50-12.rdu.redhat.com [172.16.50.12]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g53Jgbi07009 for ; Mon, 3 Jun 2002 15:42:37 -0400 Received: by redhat.com (Postfix, from userid 201) id 89A261BEA9; Mon, 3 Jun 2002 15:42:43 -0400 (EDT) Date: Mon, 03 Jun 2002 12:42:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Duplicating Unix Domain Sockets Message-ID: <20020603194243.GD26723@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-06/txt/msg00100.txt.bz2 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/