ChinaUnix.net
相关文章推荐:

dbus IPC

2003的ipc$不能删除了吗?

by sbt709394 - 企业网管技术交流区 - 2006-03-23 18:27:46 阅读(2860) 回复(3)

相关讨论

dbus基本接口 /* * Example low-level D-Bus code. * Written by Matthew Johnson * * This code has been released into the Public Domain. * You may do whatever you like with it. */ #include #include #include #include #include /** * Connect to the dbus bus and send a broadcast signal */ void sendsignal(char* sigvalue) { dbusMessage* msg; dbusMessageIter args; dbusConnection* conn; DB...

by 583893280 - Linux文档专区 - 2010-01-29 01:26:01 阅读(935) 回复(0)

参考 http://techbase.kde.org/Development/Tutorials/D-Bus/Introduction dbus地址由3部分组成 service object-path interface service: 或者所谓的bus name, 实际上是applicantion连到bus上的connection name, 不是(dbus中可以包含很多bus, 这个bus name不是这些bus的名字, 而是连接的名称) service 一般使用reverse domain, 即将域名倒过来, 如org.kde.krunner, 因为会有许多连接, 所以这样命名可以是连接名字不...

by 583893280 - Linux文档专区 - 2010-01-29 01:17:27 阅读(859) 回复(0)

#ident "@(#)hal_and_dbus.txt 1.3 06/06/21 SMI" 1. D-BUS overview 2. HAL overview 2.1 Basic terminology 2.2 External programs 2.3 Customization via .fdi files 2.3.1 File format 2.3.2 File hierarchy 2.3.3 Examples 2.4 PolicyKit 2.5 HAL D-BUS API 2.5.1 Interface org.freedesktop.Hal.Manager 2.5.2 Interface org.freedesk...

by fewlife - Linux文档专区 - 2009-07-23 10:49:23 阅读(848) 回复(0)

gpephone manual-libiac libiac参考手册 在D-Bus中,“bus”是核心的概念,它是一个通道:不同的程序可以通过这个通道做些操作,比如方法调用、发送信号和监听特定的信号。有两种不同的通道:session bus(会话通道),system bus(系统通道): 会话通道处理连接到同一桌面任务的不同程序之间的通信,即被同一个用户启动和运行 系统通道是为了处于不同会话环境中的不同程序之间提供通信。这种通道的最常用的方面就是发送系统消息,...

by gpephone - Linux文档专区 - 2008-05-13 02:21:15 阅读(752) 回复(0)

这是以前学习dbus时候写的使用dbus API来接收消息的一个比较全的例子,目的是熟悉dbus的c api的功能。今天又温习了一下,贴出来永久保留:), 有时间把原理写下,kde4都用它了,应该很重要。 /** * the demo is to demonstrate the whole process of setting up * a dbus message loop manually. for simplicity, we connect to * session bus instead of coding a server from the grand up. * the best of dbus is that w...

by sonald - Linux文档专区 - 2008-01-11 17:21:48 阅读(1279) 回复(0)

dbus是针对桌面系统产生的ipc机制,在桌面系统中使用起来很方便。 但是在文本控制台中,使用dbus就会出现问题: 通过Xshell访问桌面系统,执行调用dbus的应用程序,出现X11 initialization failed的错误。 解决方法: # export DISPLAY=:0 重新执行调用dbus的应用程序,成功。 注意:输入“export DISPLAY=:0”后修改使用用户“su -”,还是会报错:X11 initialization failed。 解决方法是,用原来的用户帐号输入“xhost +”关...

by chenjintao_ii - 嵌入式开发 - 2012-08-31 14:49:50 阅读(1578) 回复(0)

dbus例程 dbus接口 建立服务的流程: ---------------------------------- 建立一个dbus连接之后 -- dbus_bus_get(),为这个dbus连接(dbusConnection)起名 -- dbus_bus_request_name(),这个名字将会成为我们在后续进行远程调用的时候的服务名,然后我们进入监听循环 -- dbus_connection_read_write()。在循环中,我们从总线上取出消息 -- dbus_connection_pop_message(),并通过比对消息中的方法接口名和方法名 -- dbus_...

by 583893280 - Linux文档专区 - 2010-01-29 01:27:29 阅读(1970) 回复(0)

dbus 例程: http://hi.baidu.com/zengzhaonong/blog/item/670b98d6e63ae42c07088bae.html dbus基本接口: http://hi.baidu.com/zengzhaonong/blog/item/c48864f4a4b5f9daf2d3858d.html /* * Example low-level D-Bus code. * Written by Matthew Johnson * * This code has been released into the Public Domain. * You may do whatever you like with it. */ #include #include #include #include #include /** * Connect t...

by 583893280 - Linux文档专区 - 2010-01-29 01:25:15 阅读(904) 回复(0)

use command "make server" to make server while "make client" to make client. 说明:附件程序演示如下内容: 如何在服务端同步以及异步处理客户端提交的请求。 如何在客户端同步以及异步调用服务端提供的服务。 信号的使用以及参数的传递。 如何防止客户端调用超时。 client端 /********************************************* * * * * * * * ******************************************/ #include stdio.h> #inclu...

by famdestiny - Linux文档专区 - 2009-08-21 11:02:15 阅读(1583) 回复(0)

by tangke 2009-08-17 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/100996/showart_2029874.html

by fewlife - Linux文档专区 - 2009-08-17 15:10:13 阅读(953) 回复(0)