fish
fish

Reputation: 2010

What is the underlying transport for D-Bus?

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

Upvotes: 12

Views: 5832

Answers (4)

elmarco
elmarco

Reputation: 33003

There has been in the past some attempt to use netlink sockets directly from the kernel. More recently (announced during last LPC), some people are working at getting rid of D-Bus user-space daemon and putting D-Bus in the kernel, it will probably also use sockets, but maybe revive the netlink or other approaches.

Upvotes: 2

MarkR
MarkR

Reputation: 63548

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.

Upvotes: 7

Jonathan Leffler
Jonathan Leffler

Reputation: 754060

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

Upvotes: 4

Chris
Chris

Reputation: 4966

Apparently, IPC or TCP/IP:

http://www.freedesktop.org/wiki/Software/dbus
Update:
I mean, multiple IPC methods on different OS's, plus TCP/IP.
http://dbus.freedesktop.org/doc/dbus-daemon.1.html shows that the unix reference edition uses both unix domain sockets and tcp/ip.

Upvotes: 3

Related Questions