Dbus 学习笔记
dbus 中的session 和service 区别是什么
bus和service的区别
A “bus” is a “communication world/space”. You can have several buses running simultaneously on the same computer: system & session are the traditionnal ones. There can also be private buses. They are usually identified by their daemon socket: “unix:path=/var/run/dbus/system_bus_socket”
A “service” is normally a program that is started on-demand and provide an expected interface (and a a “well-known” “bus name”, such as “org.gnome.keyring”)
service: 总线模式:采用总线模式时,系统需要维护一个DBus Daemon,每个DBus的请求通过DBus Daemon转发。这种模式Server只需要维护一个与DBus Daemon的链接,结构清晰,可以通过广播的方式发送消息到各个Client。
session:会话模式:这种模式一般称之为点对点的星型结构,Client与Server之间是直接的Peer2Peer的连接,少了DBus Daemon的中转,因此性能较好。
conf文件中的字段是怎么定义的?是否可以提前生成?
conf中定义的是bus的obj path 和 interface的权限
原文链接:https://blog.csdn.net/hanhandan/article/details/120457693