This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How about this for passing file descriptors?


----- Original Message -----
From: "Corinna Vinschen" <vinschen@redhat.com>
To: <cygwin-developers@cygwin.com>
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.

Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]