[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading D-Bus messages
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: Reading D-Bus messages |
Date: |
Wed, 12 Aug 2009 20:47:56 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Wed, 12 Aug 2009 12:43:14 +0200, Michael Albinus <address@hidden> said:
>> Usually we monitor file/socket descriptors in such cases. D-Bus
>> seems to have a mechanism DBusWatch for this purpose.
> DBusWatch allows you to install handlers. IIUC, those handlers are
> called only when dbus_watch_handle() has been applied. File
> descriptors are not monitored in the sense, that a handler is
> called, when there are incoming messages. This still means polling.
I mentioned DBusWatch because the documentation of
dbus_connection_get_socket/dbus_connection_get_unix_fd says "DO NOT
read or write to the file descriptor, or try to select() on it; use
DBusWatch for main loop integration." For your purpose, doing
select() on the file/socket descriptor in wait_reading_process_output
(in process.c) is most important.
YAMAMOTO Mitsuharu
address@hidden
- Reading D-Bus messages, Michael Albinus, 2009/08/12
- Re: Reading D-Bus messages, YAMAMOTO Mitsuharu, 2009/08/12
- Re: Reading D-Bus messages, Michael Albinus, 2009/08/12
- Re: Reading D-Bus messages,
YAMAMOTO Mitsuharu <=
- Re: Reading D-Bus messages, Michael Albinus, 2009/08/15
- Re: Reading D-Bus messages, YAMAMOTO Mitsuharu, 2009/08/15
- Re: Reading D-Bus messages, Michael Albinus, 2009/08/16
- Re: Reading D-Bus messages, YAMAMOTO Mitsuharu, 2009/08/16
- Re: Reading D-Bus messages, Daniel Pittman, 2009/08/17
- Re: Reading D-Bus messages, Michael Albinus, 2009/08/18