my own event loop for onion.

5 views
Skip to first unread message

Basile Starynkevitch

unread,
Apr 29, 2014, 5:38:33 PM4/29/14
to onio...@coralbits.com
Hello all,

I have my own event loop which is calling poll(2)
- or perhaps I have a Glib event loop
https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html

Ideally my event loop should handle: written pipes (from forked child
processes), signalfd
http://man7.org/linux/man-pages/man2/signalfd.2.html and timerfd-s
http://man7.org/linux/man-pages/man2/timerfd_create.2.html adn eventfd-s
http://man7.org/linux/man-pages/man2/eventfd.2.html and CURL using its
multi interface (e.g.
http://curl.haxx.se/libcurl/c/curl_multi_socket_action.html or
http://curl.haxx.se/libcurl/c/curl_multi_fdset.html),
Probably, onion can be used with such an event loop using O_POLL |
O_ONE_LOOP, but I am not sure to figure out exactly how.

(In other words, I find CURL multi-handle documentation easier to
grasp).

BTW, I find strange the petition terminology. (For me a petition is
something political, e.g. http://en.wikipedia.org/wiki/Petition ...)
Shouldn't simply Onion talk of web requests?

Cheers.

PS. David: did you consider writing some man pages for Onion?
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***


Reply all
Reply to author
Forward
0 new messages