Most Popular

Search this site

Most Recent

Introduction to D-Bus

What you will find here is an explanation what D-Bus really is, what the concepts behind it are and how they fit together, and what jargon you'll need to know to understand it all.

Categories: C/C++, Documentation, Libraries, Perl, PHP, Python, Ruby, Vala
Homepage: http://www.freedesktop.org/wiki/IntroductionToDBus
Published by: ossdeveloper.com admin
Total page views: 120
Total rating: 0
Total votes: 0
Date added: 2008-07-04 03:55:19
Date modified: 2008-07-04 03:55:19

Description

D-Bus is an inter-process communication mechanism—a medium for local communication between processes running on the same host. (Inter-host connects may be added in the future, but that is not what D-Bus is meant for). D-Bus is meant to be fast and lightweight, and is designed for use as a unified middleware layer underneath the main free desktop environments.

If you're familiar with many communication mechanisms, here's a quick rundown of this one. Unlike more heavyweight conventional messaging middleware, D-Bus is non-transactional. It is stateful and connection-based, however, making it "smarter" than low-level message-passing protocols such as UDP. On the other hand, it does carry messages as discrete items—not continuous streams of data as is the case with TCP. Both one-to-one messaging and publish/subscribe communication are supported.

D-Bus has a structured view of the data it carries, and deals with data in binary form: integral numbers of various widths, floating-point numbers, strings, compound types, and so on. Because data is not just "raw bytes" to D-Bus, messages can be validated and ill-formed messages rejected. In technical terms, D-Bus behaves as an RPC mechanism and provides its own marshaling.

More information

Access the home page for more information

Leave a comment

Your name

Your comments

Please type the characters you see in the image below