Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the underlying transport for D-Bus?

Tags:

linux

ipc

dbus

D-Bus allows programs to communicate. How is this IPC implemented? Unix domain sockets, shared memory + semaphores, named pipes, something else? Maybe a combination?

like image 226
fish Avatar asked Feb 21 '09 04:02

fish


People also ask

What is D-bus connection?

In computing, D-Bus (short for "Desktop Bus") is a message-oriented middleware mechanism that allows communication between multiple processes running concurrently on the same machine.

What is D-bus API?

A D-Bus API is a specification of one or more interfaces, which will be implemented by objects exposed by a service on the bus. Typically an API is designed as a set of interface files, and the implementation of the service follows those files.

Does dbus use sockets?

http://dbus.freedesktop.org/doc/dbus-daemon.1.html shows that the unix reference edition uses both unix domain sockets and tcp/ip.

Is dbus still used?

You can run dbus on any modern Unix, Windows, or macOS platform; but it's only the standard system management IPC on Linux. The Dbus protocol defines both how to exchange data, and also the metadata about what data is available.


2 Answers

I think it typically uses UNIX sockets. Under Linux, it may use "abstract namespace" Unix sockets, which are the same except they don't physically exist as visible files in the filesystem.

like image 80
MarkR Avatar answered Sep 17 '22 23:09

MarkR


This is remarkably similar to the question DBus query. And the answer from Googling was sockets - either for TCP/IP or Unix Domain.

like image 42
Jonathan Leffler Avatar answered Sep 19 '22 23:09

Jonathan Leffler