[Patch] Moving FD passing into the header

Colin Walters walters at verbum.org
Wed Jun 23 05:00:48 PDT 2010


On Tue, Jun 22, 2010 at 8:49 PM, Lennart Poettering <mzqohf at 0pointer.de> wrote:
>
> And again, and I said it a gazillion of times: nothing stops you from
> serializing/deserializing the unix fd stuff not as unix fd, but as index
> into the fd table. Then, things would behave almost identical to what
> your patches offer, except that methods that carry unix fds are properly
> typechecked and have complete introspection data. You could support that
> just fine in GVariant with minimal work.

This makes me think of a third option here - make the 'h' type be
DBUS_TYPE_OOB (out of band).  It's an integer index into some
(possibly platform specific) data to be found in the header.  In your
service documentation you'd mention that the 'h' in a particular
method is a file descriptor, say.


More information about the dbus mailing list