[PATCH?] dbus_select

Rudi Cilibrasi, Ph.D. cilibrar at gmail.com
Wed May 2 00:42:13 PDT 2007


This sounds like a very useful direction to me... I always use select
for network programming.  Best regards,

Rudi

On 5/2/07, Jozef Vesely <vesely at gjh.sk> wrote:
>
>
> Hello,
>
> there are lot of programs with mainloop build around select().
> I have created wrapper arround select(), which keeps track
> of dbus's file descriptors and adds them to those, which user
> wants to select on.
>
> Thus any application built around select() can be integrated
> with dbus simply by replacing select() with dbus_select().
>
> My implementation is at:
> http: //www.kolej.mff.cuni.cz/~vesej3am/linux/dbus-select.c
> http: //www.kolej.mff.cuni.cz/~vesej3am/linux/dbus-select.h
>
> However it would be helpful if it could be integrated into
> libdbus since the code could be much simplified if it could
> access internals of DBusConnection and didn't have to keep
> own lists of DBusWatches and DBusTimeout.
>
> This was my first time with dbus, so any comments are welcomed.
>
> Bye
>
> Jozef Vesely
> vesely at gjh.sk
>
>
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>



-- 
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20070502/d54e42f1/attachment-0001.html


More information about the dbus mailing list