Python asyncore & dbus

Is it possible to integrate asyncorewith dbusthrough the same 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?

+5
source share
3 answers

asyncoresucks. glibalready provides asynchronous things, so just use glibmainloop to do everything.

+7
source

I wrote a trivial wrapper GSourcefor one of my own projects calledAsyncoreGSource

attach MainContext:

source = AsyncoreGSource([socket_map])
source.attach([main_context])

, asyncore.socket_map MainContext .

asyncore.socket_map, , GLib python GSource.

+1

, , , , - asyncore . asyncore.loop 1, (, , ) . , .

glib-, , , asyncore , select poll .

0
source

All Articles