How about this for passing file descriptors?

Robert Collins
Mon Jul 15 03:05:00 GMT 2002

----- Original Message -----
From: "Corinna Vinschen" <>
To: <>
Sent: Monday, July 15, 2002 6:31 PM

...  Each of them needs some different
> strategy so I wonder if it makes sense to create a new virtual fhandler
> method to do the job.  Anyway, what I'm implementing is the following:

I think it does. Just off the cuff, we need a struct that has transfer
information -
struct transfer { void *buffer; int buflen; HANDLE *handles; int
handlecount;}; and a couple of virtual functions for the fd class -

transfer prep_transfer () const;
void complete_transfer (transfer const &);

Anyway, just my 2c.


More information about the Cygwin-developers mailing list