Re: Descriptor passing between process

2002-03-28 Thread David E Euresti
I'm working on a way to pass file descriptors between processes. I've already got it functioning by using writes to pass the file handle (using get_osfhandle) and the current processId using GetCurrentProcessId the receiving side then calls Duplicate Handle to create the handle. Then I do a cyg

Re: Descriptor passing between process

2002-01-25 Thread Robert Collins
=== - Original Message - From: "egor duda" <[EMAIL PROTECTED]> To: "Corinna Vinschen" <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 3:18 AM Subject: Re: Descriptor passing between process > Hi! > > Thursday, 24 January, 2002 Corinna Vin

Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen
On Thu, Jan 24, 2002 at 07:18:13PM +0300, Egor Duda wrote: > Hi! > > Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote: > > CV> It *could* be implemented. > > CV> First we would have to implement the control message passing at all and > CV> when it's available we could perhaps

Re: Descriptor passing between process

2002-01-24 Thread egor duda
Hi! Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote: CV> It *could* be implemented. CV> First we would have to implement the control message passing at all and CV> when it's available we could perhaps even implement descriptor passing CV> using the DuplicateHandle() function

Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen
On Thu, Jan 24, 2002 at 04:38:40PM +0100, Corinna Vinschen wrote: > On Thu, Jan 24, 2002 at 04:45:13PM +0300, Egor Duda wrote: > > Hi! > > > > Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote: > > > > CV> On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote: > > >> CV> It

Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen
On Thu, Jan 24, 2002 at 04:45:13PM +0300, Egor Duda wrote: > Hi! > > Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote: > > CV> On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote: > >> CV> It's part of the API since 1.3.8-1. > >> > >> Hmm. What change are you referring

Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen
On Thu, Jan 24, 2002 at 03:17:23PM +0100, Christophe LEITIENNE wrote: > I found a piece of code that doesn't use all this stuff. Could it work (I > haven't tried yet) ? > > int sendfd(sockfd, fd) > int sockfd; /* UNIX domain socket to pass descriptor on */ > int fd; /* the actual fd value to pa

Re: Descriptor passing between process

2002-01-24 Thread Christophe LEITIENNE
Hi all, > yes, but if i understand things correctly, Christophe was talking > about passing file descriptors between processes by means of AF_UNIX > sockets. btw, "Subject:" implies this :). > > this is done on unices via msg_control (or msg_accrights) field in msg > structure. and unices ensure

Re: Descriptor passing between process

2002-01-24 Thread egor duda
Hi! Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote: CV> On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote: >> CV> It's part of the API since 1.3.8-1. >> >> Hmm. What change are you referring to? I don't see anything like this >> in the ChangeLog. CV> 2002-01-19 Ma

Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen
On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote: > CV> It's part of the API since 1.3.8-1. > > Hmm. What change are you referring to? I don't see anything like this > in the ChangeLog. 2002-01-19 Mark Bradshaw <[EMAIL PROTECTED]> * cygwin.din: Add recvmsg and sendmsg.

Re: Descriptor passing between process

2002-01-24 Thread egor duda
Hi! Wednesday, 23 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote: CV> On Wed, Jan 23, 2002 at 10:55:07AM +0100, Christophe LEITIENNE wrote: >> I'm using Cygwin 1.3.8 on a Windows 2000 box. >> I'm looking for a way to pass a socket descriptor between 2 process, using >> sendmsg and recvms