Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.896.112 Times

eventxx 0.6

  Date Added: August 13, 2010  |  Visits: 476

eventxx

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



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. Whats New in This Release: - Uses event_base_free() by default since libevent 1.3b fixes the bug that caused the assertion. - Minor documentation changes..

Requirements: No special requirements
Platforms: Linux
Keyword: C++ Event Eventxx Inline Libevent Libraries Programming Simple Wrapper
Users rating: 0/10

License: Freeware Size: 26.62 KB
USER REVIEWS
More Reviews or Write Review


EVENTXX RELATED
Libraries  -  Surumi 0.0.1
Surumi project is a modular event-driven programming framework. It offers a generic and uniform interface. You certainly heard of event-driven programming, but in any window system, those events are usually bound on ``window objects and very...
245.76 KB  
Libraries  -  Easy Game Library 20040323
Easy Game Library is library of C++ classes designed to make game programming easier. Now it consists only of easy_sprite library which consists of classes for using sprites. It should compile on different platforms because it uses SDL library...
58.37 KB  
Libraries  -  GNU adns 1.0
GNU adns is a resolver library for C and C++ programs. Includes automatic sanity checking and responses that are automatically decoded into a natural C representation. Very easy to use for simple programs that just want to look up MX records or...
245.76 KB  
Libraries  -  Geo::Coder::YahooJapan 0.04
Geo::Coder::YahooJapan is a simple wrapper for Yahoo Japan Geocoder API. SYNOPSIS use Geo::Coder::YahooJapan; $r = lookup( $address_in_japanese_characters ); my ($lat, $lng) = ( $r->{latitude}, $r->{longitude} ); # coordinate in WGS87. #...
4.1 KB  
Libraries  -  gfontsel 1.0.0
gfontsel program is a simple wrapper around the GTK+ 2 font selection dialog. It allows you to select a font. The font name is written to the standard output in the GTK+ 2 font naming scheme. Building and installing the program: - Read the...
11.26 KB  
Libraries  -  Inline::C 0.44
Inline::C is a Perl module that can Write Perl Subroutines in C. Inline::C is a module that allows you to write Perl subroutines in C. Since version 0.30 the Inline module supports multiple programming languages and each language has its own...
92.16 KB  
Libraries  -  libevent 1.3d
libevent library provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. It is meant to replace the asynchronous event loop found in event-driven network servers....
348.16 KB  
Libraries  -  Inline::Select 0.01
Inline::Select contains dynamic selection of ILSM for a package. SYNOPSIS use Inline::Select::Register ( PACKAGE => Calc, Inline => [ Perl => sub {require t/Calc.pm} ] ) ; use Inline::Select::Register ( PACKAGE => Calc, Inline => [ CPP...
3.07 KB  
Libraries  -  Aapl C++ Template Library 2.14
Aapl is a C++ template library for generic programming. Aapl supports different generic programming paradigms by providing variations of standard data structures. For example, a by-value linked list template may be used to store a user supplied...
122.88 KB  
Libraries  -  Inline::CPP 0.25
Inline::CPP is a Perl module that can write Perl subroutines and classes in C++. SYNOPSIS use Inline CPP; print "9 + 16 = ", add(9, 16), "n"; print "9 - 16 = ", subtract(9, 16), "n"; __END__ __CPP__ int add(int x, int y) { return x +...
24.58 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB