Is it possible to integrate asyncorewith dbusthrough the same main loop?
asyncore
dbus
main loop
Typically, DBus integration is done using a main loop glib: is it possible that it either asyncoreintegrates this main loop or uses dbus asyncore?
glib
asyncoresucks. glibalready provides asynchronous things, so just use glibmainloop to do everything.
I wrote a trivial wrapper GSourcefor one of my own projects calledAsyncoreGSource
GSource
AsyncoreGSource
attach MainContext:
MainContext
source = AsyncoreGSource([socket_map]) source.attach([main_context])
, asyncore.socket_map MainContext .
asyncore.socket_map
asyncore.socket_map, , GLib python GSource.
, , , , - asyncore . asyncore.loop 1, (, , ) . , .
glib-, , , asyncore , select poll .