DBUS message formats

quintesse at palacio-cristal.com quintesse at palacio-cristal.com
Mon Dec 12 06:53:44 PST 2005


Just curious, because I'm not really sure how dbus is normally used but
would it be (theoretically) possible in a future version to exchange the
binary protocol that is being used for another? Or is most of that code
statically included in some/most applications?

Cheers,
 -Tako


> The only thing that uses XML is the introspection format.  The message
> format is binary and being that we are almost ready to ship 1.0 unless
> there is a really good reason to switch, we won't.  Many smart people
> have worked on D-Bus and given their input.  We value yours but it is
> kind of late to the game.  We feel our approach is the right one and if
> it is not then let it be bested by real world alternatives rather than
> theoretical standards.
>
> BTW OO programming is a way of thinking not a language.  D-Bus's API is
> very much centered around objects.
>
> On Mon, 2005-12-12 at 13:50 +0100, Gerrit van der Bij wrote:
>> Hi there,
>>
>> I've read the documentation that accompanies the debian package of
>> dbus-1, in particular the message formats.
>>
>> I agree with XML having far too much overhead. Binary protocols are
>> better suited for the purpose of IPC.
>> I have been experimenting with writing my own SNMP-engines in JAVA, and
>> at the heart of SNMP lies the ASN.1 BER specification. (ASN.1 Binary
>> Encoding Rules)
>> This is a binary specification which is (nearly) as lightweigth as the
>> message protocol used by DBUS.
>> So I wondered: Wouldn't it be more practical to adopt the ASN.1 BER
>> specification for your messages ?
>> That way, you can write the specification of the message format in the
>> ASN.1 language, which is a standard for these kind of things.
>> (In the long term, the DBUS messages could be sent via SNMP to other
>> machines, and vice versa)
>>
>> I'd offer my coding skills but I've just migrated from C to object
>> oriented programming and I am blissfully unaware of how to code anything
>> else than a single executable..
>>
>> w/regards,
>>
>> Gerrit van der Bij
>>
>>
>>
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
> --
> John (J5) Palmieri <johnp at redhat.com>
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>




More information about the dbus mailing list