Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OCaml C Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
The ocaml-libevent library Overview ocaml-libevent is a wrapper for the libevent API. The libevent API 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. Libevent is meant to replace the event loop found in event driven network servers. An application just needs to call event_dispatch() and then adds or removes events dynamically without having to change the event loop. This wrapper makes the libevent library available for ocaml programmers. Installation - Download, compile, and install libevent. See http://libevent.org - Edit the variables at the beginning of the Makefile to reflect the location where libevent is installed on your system. - Do make depend; make all - If the Objective Caml native-code compiler is available on your platform (look for the "ocamlopt" executable), do "make allopt". - To generate the documentation, do "make doc" - (Optional) To test the library, do "make test". This requires the installation of OUnit. - (Optional) To test the library compiled with ocamlopt and ocamlc, do "make testall". This requires the installation of OUnit. - Become super-user if necessary and do "make install". This installs the library in the standard Objective Caml library directory. Documentation See the HTML documentation in doc/index.html References Homepage http://github.com/ygrek/ocaml-libevent Originally at http://mmzeeman.home.xs4all.nl/ocaml/ libevent http://libevent.org