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

libevent integration #17

Open
tohava opened this issue Apr 22, 2012 · 0 comments
Open

libevent integration #17

tohava opened this issue Apr 22, 2012 · 0 comments

Comments

@tohava
Copy link

tohava commented Apr 22, 2012

I've implemented a small piece of code that allows integrating libstrophe with libevent. It adds a new function
xmpp_conn_t *xmpp_conn_ev_new(xmpp_ctx_t * const ctx, struct event_base *base) that creates a connection that uses libevent loop instead off libstrophe loop.

The code is still missing at least two crucial parts:

  • Error handling
  • Allow compilation switch to disable/enable libevent support.

It might also be wise to somehow generalize it to allow other adapters except for a libevent adapter but i'm not 100% sure about how to do it yet.

Here is a commit with my changes, it is not complete yet so I'm not doing a pull request.

tohava@6e62612

Is what I have so far ok?
Also, is this fork of interest for you, will you consider merging it?

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

No branches or pull requests

1 participant