libevent fully refactored #565
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As I did for the
LibBoostAsioHandlerand theLibUvHandler, now it's time forLibEventHandlertoo.This version implements heartbeat and offers the same functionality as the other handlers (finally a fix for #330.) The example code has also been updated to do exactly the same things as the other examples.
This will allow for quick comparisons between different handlers, in terms of usage and perhaps benchmarking. Certainly, if you encounter problems with a handler, you can now quickly check whether changing handler solves the problem.
I don't think I could give a better Christmas present to AMQP-CPP, which can finally boast a large selection of handlers, all fully functional. Although I shouldn't say anything about libev...
I must confess that at the underlying library level,
libeventleft me pleasantly impressed and I recommend it for its ease of use, the richness of its APIs and the truly complete documentation it has.As usual, for those impatient and eager to try it, here it is.
Important
libevent_2025-12-20.zip
@brentnd I hope you don't mind me brushing up your code, but it was about time.