关于dbus的三个概念的理解
来源:互联网 发布:软件编写教程 编辑:程序博客网 时间:2024/05/18 00:33
首先,dbus是利用了dbus这种机制来实现与进程的交互。
在交互当中,连接时,需要提供busname、object-path、interface.
如何理解,上面这三个东西,是理解dbus应用的关键:
busname是程序的名字,是在service文件当中指定的。
如下面所示:
如下面所示:
[root@proEnv23 ~]# cat /usr/lib/systemd/system/systemd-timedated.service
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Time & Date Service
Documentation=man:systemd-timedated.service(8) man:localtime(5)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/timedated
[Service]
ExecStart=/usr/lib/systemd/systemd-timedated
BusName=org.freedesktop.timedate1
CapabilityBoundingSet=CAP_SYS_TIME
WatchdogSec=1min
PrivateTmp=yes
ProtectSystem=yes
ProtectHome=yes
[root@proEnv23 ~]# gdbus introspect --system --dest org.freedesktop.timedate1
Error: Object path is not specified
[root@proEnv23 ~]#
object-path是对象的路径,其实现了下面的interface的接口。
interface是接口。
0 0
- 关于dbus的三个概念的理解
- 理解SOA概念的三个比喻
- 理解SOA概念的三个比喻
- 理解SOA概念的三个比喻
- 理解SOA概念的三个比喻
- 关于oracle的数据库名称、实例名称和服务名称三个概念的理解
- 关于python-dbus的问题
- 关于包络概念的理解
- 关于概念理解的总结:
- 关于屏幕的概念理解
- 关于MySql三个范式的理解
- linux下dbus的理解学习
- KVO、Notification、Delegate 三个概念的深入理解整理
- 关于程序员职业生涯的两个概念和三个阶段
- 关于程序员职业生涯的两个概念和三个阶段
- ASP.net 关于类概念的理解
- 关于人力系统若干概念的理解
- 关于安卓中context概念的理解
- C#中属性的使用
- Android实现文章+评论(MVP,RxJava,Dagger2,ButterKnife)
- 2016腾讯we大会的召开时间
- kettle和MongoDB之间的数据同步
- POJ 1416 && OpenJudge 1805 Shredding Company (DFS+剪枝)
- 关于dbus的三个概念的理解
- JAVA开发5--使用bat脚本调用jar包
- nginx的使用之反向代理(1)
- FreeRTOS系列第16篇---可视化追踪调试
- Postgres FDW 中由 PGresult 结构生成 HeapTuple 的过程
- MTK8127源码编译出现的错误及相关解决办法
- ABBYY CLOUD OCR心得
- FreeRTOS系列第17篇---FreeRTOS队列
- SDUTACM 面向对象程序设计上机练习八(对象数组)