|Stefan Bühler f5fc31c6b7||7 år sedan|
|src||7 år sedan|
|.gitignore||7 år sedan|
|COPYING||7 år sedan|
|Makefile.am||7 år sedan|
|README.md||7 år sedan|
|autogen.sh||7 år sedan|
|configure.ac||7 år sedan|
|evcon-ev.pc.in||7 år sedan|
|evcon-event.pc.in||7 år sedan|
|evcon-glib.pc.in||7 år sedan|
|evcon.pc.in||7 år sedan|
|libevcon-ev0.symbols||7 år sedan|
|libevcon-event0.symbols||7 år sedan|
|libevcon-glib0.symbols||7 år sedan|
|libevcon0.symbols||7 år sedan|
evon is a generic wrapper library that sits between libraries that need socket (file descriptor), timeout and (thread safe) asynchronous events, and an application that wants to use the library.
Should work on all POSIX compatible platforms.
You want to write an application that uses two different event based libraries; if these libraries don’t use the same event loop (say X uses libev and Y libevent) you will have difficulties using them - you could give each library its own thread for example, but embedding one event loop in another is usually not easy.
If the libraries were built against evcon, you could use any event loop - if there is no backend for it yet, you probably can write one.
src/tests/evcon-echo.h for an example “library”, and
src/tests/evcon-test-*.c for how to use them in an application.
Run the following in the source directory to prepare the build system:
You will need automake and autoconf for this.
All backends need glib (>= 2.14). The libev backend needs libev >= 4, the libevent backend needs libevent >= 2.
Build in a sub directory:
mkdir build cd build ../configure make check
Install (probably has to be run as root):
As always it is recommended to use a package system to install files instead (dpkg, rpm, ...).