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

posted on   lydstory  阅读(91)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-04-07 lsm一些结构体
2021-04-07 rmmod 系统卡死
2021-04-07 chattr +i 静止文件复制
2021-04-07 sk_buff
2021-04-07 内核模块卡死
2021-04-07 Assembler messages: unsupported instruction `mov'
2021-04-07 linux 汇编代码

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示