D-BUS spec - comments on wire protocol

Robert Wittams robert@wittams.com
Sat Jan 22 05:24:20 PST 2005


> 
> To me a better approach than allowing huge arrays would be some kind of
> standard support for streams.
> 

I've been wondering about this. One of the nicest features in modern 
unices is being able to pass file descriptors over unix domain sockets. 
Its the closest thing to capabilities we have in unix land. (Real 
capabilities, not Posix ones).

It would be a shame if D-Bus precluded the use of these. If some 
standardized support for streams were included, would it be possible to 
have them implemented as fd passing on the unix domain socket transport?

Doing remote (TCP) ones would be harder ( if you want to preserve the 
capability-ness of them), but I think it is possible. The E language for 
example supports this kind of thing IIRC.

It could also prove a performance win for things like Sean Middleditch's 
proposed VFS over Dbus. eg for some protocols it might be possible to 
pass off the socket after parsing the header...

Any of this make sense?

Rob



More information about the dbus mailing list