[systemd-devel] Direct connection between peers in sd-bus

Lennart Poettering lennart at poettering.net
Fri Jan 18 12:47:43 UTC 2019


On Fr, 18.01.19 00:19, Stanislav Angelovič (angelovic.s at gmail.com) wrote:

> Hi,
>
> In sd-bus, I guess it is possible to have a one-to-one connection between a
> service and a client, i.e. connection without D-bus daemon), am I right? If
> yes, is there any example (in systemd source tree or elsewhere) of sd-bus
> one-to-one communication usage that I could look at for inspiration and
> learning on how is that done?

systemctl and PID 1 optionally communicate with direct one-to-one
connections, as one example.

There's also a test that tests this mode of operation, which can be
useful as an example too:

https://github.com/systemd/systemd/blob/master/src/libsystemd/sd-bus/test-bus-server.c

Lennart

--
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list