[bind10-dev] fd_share / send_fd
Francis Dupont
fdupont at isc.org
Thu Apr 7 20:44:37 UTC 2011
> On Thu, Apr 07, 2011 at 10:24:32AM +0000, Francis Dupont wrote:
> > Some questions about fd_share / send_fd:
> > - it seems there are two versions of them today: src/lib/xfr and
> > src/lib/util/io. It seems it is a simple code reorg, i.e.,
> > the code moved from xfr to util/io (BTW this is a good idea)
>
> Actually, there should be just one.
=> yes, it is the same one, yesterday it was in xfr, today in util/io.
> They should be socket file descriptors
=> fine
> > - there are other ways to send a file descriptor, for instance
> > one can open /proc/<other_process_id>/fd/<file_descriptor_number>
> > on Linux or in general any OS with /proc file system.
> > I'd like to get a fd_share / send_fd clone using this /proc way
> > (IMHO it is far closer than PF_UNIX to what Windows support,
> > and this can remove some dependencies too).
>
> Hmm, why can't there be two different versions, the same headers,
> but different implementations for windows and the rest, like with
> some #ifdef WINDOWS or something?
=> it is the idea but it needs to be less bound to PF_UNIX first.
> Anyway, windows don't have the /proc anyway, right?
=> but it provides WSADuplicateSocket() which takes the process ID
at its second arguments. So it can be made pretty similar to
a send_fd() using /proc (same interface, etc).
> Why TODO list in haskell? It handles infinite data structures.
=> it is not true: the data structures are not really infinite,
they built in a lazy way... Oops, this has nothing to do with bind10.
Thanks
Francis Dupont <fdupont at isc.org>
More information about the bind10-dev
mailing list