Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async/event interface #22

Open
buhman opened this issue Jul 26, 2014 · 1 comment
Open

async/event interface #22

buhman opened this issue Jul 26, 2014 · 1 comment

Comments

@buhman
Copy link
Contributor

buhman commented Jul 26, 2014

http://curl.haxx.se/libcurl/c/libcurl-multi.html

In particular I'm interested in

Enable the application to wait for action on its own file descriptors and curl's file descriptors simultaneous easily.

Roughly, you should be writing your HTTP request to the socket, then passing the socket back to me (the libshaman caller). I then use that in my own epoll loop, then give you back your descriptor to do the real read, and give me the data I asked for.

Ultimately, it would allow things like prc to handle other irc-protocol things without waiting for OWM to do the hokey-pokey.

Let me know if you want this, and I'll get started on a PR.

@HalosGhost
Copy link
Owner

I don't mean to dissuade you because PRs are always welcome, but this personal project is actually mostly done because I enjoy doing it. If this is something I eventually decide to implement, I would love the chance to try to implement it myself (since I've never worked with curl's multi interface before, this would be a great learning experience).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants