eventxx 0.6
Sponsored Links
eventxx 0.6 Ranking & Summary
File size:
0.026 MB
Platform:
Any Platform
License:
Public Domain
Price:
Downloads:
867
Date added:
2007-06-09
Publisher:
Leandro Lucarella
eventxx 0.6 description
libevent is a popular API that provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also support callbacks due to signals or regular timeouts.
eventxx project is a simple, direct, one-header inline C++ wrapper for libevent. Yes, its just one header file, so if you want to use it you can just copy the file to your project and you are set (well, youll need to link to libevent too ;). I know eventxx will work with libevent 1.1 and 1.2 if you use the event_base_free() fix (see Status section for more details).
Its designed to be as close to use to libevent (without compromising modern C++ programming techniques) and efficient (since all implementation is trivial and inline, theoretically, it imposes no overhead at all) as possible.
Please, visit the eventxx website for the latest version of this documentation.
You can always get the current release from the release directory or grab the most up to date sources from the darcs repository.
You can also take a look the the darcsweb interface to see the latest changes online or subscribe to its RSS feed to follow the development.
Usage:
You probably should read libevent documentation to get started or at least just for reference, although eventxx is pretty simple so you can jump right into the Example section (or the example list) and write a working program without much trouble.
This wrapper was designed to be used just like libevent, but with C++ style syntax sugar (or poison, depends on your point of view ;) and goodies. The main difference to libevent is you always have to instance a eventxx::dispatcher to get an event loop. There is no implicit global event loop. This adds just an extra line of code for single threaded applications and makes things much more simpler, so I hope nobody complains about it ;). See eventxx::dispatcher documentation for more details.
You can use use the same plain functions callbacks libevent use or the other kind of function objects (see Events section for details on event types).
eventxx uses Exceptions to report errors. All functions have exception specifications, so its easy to find out what to expect. See Exceptions section for more detail.
A timespec abstraction is provided as eventxx::time for convenient argument passing. Even more, its a timespec itself, with some convenient methods for accessing the attributes with pritier names. And even more, eventxx is such a direct mapping that all eventxx::events are libevent event structs too, so theoretically you can pass a eventxx::event to libevent C functions without much trouble. eventxx::dispatcher is the only class that is not derived from libevent struct (event_base) because this struct its not defined on the libevent header (just declared).
Maybe you shouldnt know this implementation details to keep the abstraction, but this is a basic design goal of this wrapper so there is not much chance that this changes in the future (but use this knowledge with care, you have been warned.
Enhancements:
- Uses event_base_free() by default since libevent 1.3b fixes the bug that caused the assertion.
- Minor documentation changes.
eventxx project is a simple, direct, one-header inline C++ wrapper for libevent. Yes, its just one header file, so if you want to use it you can just copy the file to your project and you are set (well, youll need to link to libevent too ;). I know eventxx will work with libevent 1.1 and 1.2 if you use the event_base_free() fix (see Status section for more details).
Its designed to be as close to use to libevent (without compromising modern C++ programming techniques) and efficient (since all implementation is trivial and inline, theoretically, it imposes no overhead at all) as possible.
Please, visit the eventxx website for the latest version of this documentation.
You can always get the current release from the release directory or grab the most up to date sources from the darcs repository.
You can also take a look the the darcsweb interface to see the latest changes online or subscribe to its RSS feed to follow the development.
Usage:
You probably should read libevent documentation to get started or at least just for reference, although eventxx is pretty simple so you can jump right into the Example section (or the example list) and write a working program without much trouble.
This wrapper was designed to be used just like libevent, but with C++ style syntax sugar (or poison, depends on your point of view ;) and goodies. The main difference to libevent is you always have to instance a eventxx::dispatcher to get an event loop. There is no implicit global event loop. This adds just an extra line of code for single threaded applications and makes things much more simpler, so I hope nobody complains about it ;). See eventxx::dispatcher documentation for more details.
You can use use the same plain functions callbacks libevent use or the other kind of function objects (see Events section for details on event types).
eventxx uses Exceptions to report errors. All functions have exception specifications, so its easy to find out what to expect. See Exceptions section for more detail.
A timespec abstraction is provided as eventxx::time for convenient argument passing. Even more, its a timespec itself, with some convenient methods for accessing the attributes with pritier names. And even more, eventxx is such a direct mapping that all eventxx::events are libevent event structs too, so theoretically you can pass a eventxx::event to libevent C functions without much trouble. eventxx::dispatcher is the only class that is not derived from libevent struct (event_base) because this struct its not defined on the libevent header (just declared).
Maybe you shouldnt know this implementation details to keep the abstraction, but this is a basic design goal of this wrapper so there is not much chance that this changes in the future (but use this knowledge with care, you have been warned.
Enhancements:
- Uses event_base_free() by default since libevent 1.3b fixes the bug that caused the assertion.
- Minor documentation changes.
eventxx 0.6 Screenshot
eventxx 0.6 Keywords
Bookmark eventxx 0.6
eventxx 0.6 Copyright
WareSeeker periodically updates pricing and software information of eventxx 0.6 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of eventxx 0.6 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor. Free Download
libevnet provides a suite of interfaces useful in network applications. Free Download
SSVN is a wrapper script for svn to store file permissions in a Subversion repository (along with the versioned file). Free Download
SPServer project is a server framework library written on C++ that implements the Half-Sync/Half-Async pattern. Free Download
Rudiments is a C++ class library providing base classes for things such as daemons, clients, and servers. Free Download
adevs is a C++ library for developing discrete event simulations based on the Parallel DEVS and DSDEVS formalisms. Free Download
SyncPOD is a program that syncs a local folder with your iPod. Free Download
VSQLite++ is a portable SQLite wrapper library for C++. Free Download
Latest Software
Popular Software
Favourite Software