Nick's public libevent repository. The official repository is at git://levent.git.sourceforge.net/gitroot/levent/libevent
C CMake Python C++ Groff M4 Other
Latest commit ca591c5 Nov 18, 2016 @azat azat vagrant: add centos box
Packages list get from here:
  https://pkgs.org/search/

Refs: #424
Permalink
Failed to load latest commit information.
WIN32-Code Bump version to 2.1.7-beta everywhere Nov 4, 2016
cmake Bump version to 2.1.7-beta everywhere Nov 4, 2016
compat/sys Fix all identifiers with names beginning with underscore. Feb 29, 2012
include use ev_uint16_t instead of unsigned short for port Oct 25, 2016
m4 autotools/win32: fix searching ssl library Aug 9, 2016
sample use ev_uint16_t instead of unsigned short for port Oct 25, 2016
test test/regress: cover a polling of invalid fd Nov 4, 2016
.clang-format Add config for clang-format Oct 5, 2016
.gitignore Testing with vagrant for 6 OS and cmake+autoconf Oct 31, 2016
.travis.yml travis-ci/osx: install lcov Nov 4, 2016
.uncrustify Add config for uncrustify Oct 5, 2016
CMakeLists.txt Bump version to 2.1.7-beta everywhere Nov 4, 2016
CONTRIBUTING.md Add CONTRIBUTING.md (with checkpatch.sh examples) Oct 5, 2016
ChangeLog Update changelog for 2.1.7-rc Nov 4, 2016
ChangeLog-1.4 Try to finalize changelog situation for 2.1.1-alpha Apr 3, 2012
ChangeLog-2.0 Update ChangeLog-2.0 Nov 18, 2012
Doxyfile Fix doxygen to use new macro conventions Feb 29, 2012
LICENSE Implement fast/precise monotonic clocks on Windows Apr 26, 2012
Makefile.am Bump version to 2.1.7-beta everywhere Nov 4, 2016
Makefile.nmake Revert "The Windows socket type is defined as SOCKET." Dec 20, 2015
README.md README: update AUTHORS Nov 4, 2016
Vagrantfile vagrant: add centos box Nov 18, 2016
appveyor.yml Bump version to 2.1.7-beta everywhere Nov 4, 2016
arc4random.c Merge remote-tracking branch 'origin/patches-2.0' Aug 19, 2013
autogen.sh autogen.sh: learn about gmake Oct 31, 2016
buffer.c buffer: don't mix code and declarations Jul 7, 2016
buffer_iocp.c Have all visible internal function names end with an underscore. Feb 29, 2012
bufferevent-internal.h be_sock: cancel in-progress dns requests Mar 23, 2016
bufferevent.c be: just a simple mistake, reinclude the <errno.h> Oct 4, 2016
bufferevent_async.c be async: avoid double close() Nov 21, 2014
bufferevent_filter.c be_filter: avoid data stuck under active watermarks Jun 19, 2016
bufferevent_openssl.c Make it build using OpenSSL 1.1.0 Oct 16, 2016
bufferevent_pair.c Fix bufferevent_pair to properly set BEV_EVENT_{READING,WRITING} on f… Jun 17, 2016
bufferevent_ratelim.c Pass and return const for bufferevent_get_token_bucket_cfg Jul 11, 2013
bufferevent_sock.c be_sock: handle readv() returns ECONNREFUSED (freebsd 9.2) Aug 10, 2016
changelist-internal.h Implemented EV_CLOSED event for epoll backend (EPOLLRDHUP). Jan 18, 2014
checkpatch.sh Add checkpatch script Oct 5, 2016
configure.ac Bump version to 2.1.7-beta everywhere Nov 4, 2016
defer-internal.h fix the return value of event_deferred_cb_schedule_ Mar 25, 2015
devpoll.c Have all visible internal function names end with an underscore. Feb 29, 2012
epoll.c epoll: introduce PRINT_CHANGES() macro to avoid copy-pasting Nov 18, 2015
epoll_sub.c Merge remote-tracking branch 'origin/patches-2.0' Jan 22, 2014
epolltable-internal.h Split epoll lookup table into a separate header file Jan 21, 2014
evbuffer-internal.h Fix CVE-2014-6272 in Libevent 2.1 Jan 5, 2015
evconfig-private.h.cmake Generate a dummy evconfig-private.h so things build properly. Dec 13, 2013
evconfig-private.h.in Clean up lingering _identifiers. Feb 29, 2012
evdns.3 improved nroff mdoc for the man page Oct 15, 2006
evdns.c evdns: fix searching empty hostnames Mar 24, 2016
event-config.h.cmake cmake: cleanup Oct 26, 2016
event-internal.h Add a prototype for event_disable_debug_mode() Sep 10, 2015
event.3 Don't use BSD u_* types. Aug 25, 2015
event.c event_reinit: make signals works after fork() without evsig_add() Dec 26, 2015
event_iocp.c Merge remote-tracking branch 'origin/patches-2.0' Nov 1, 2013
event_rpcgen.py Merge remote-tracking branch 'origin/patches-2.0' Oct 26, 2012
event_tagging.c Include <sys/ioctl.h>, <sys/resource.h> and <sys/wait.h> optionally. Sep 10, 2015
evmap-internal.h Have all visible internal function names end with an underscore. Feb 29, 2012
evmap.c Implemented EV_CLOSED event for epoll backend (EPOLLRDHUP). Jan 18, 2014
evport.c Have all visible internal function names end with an underscore. Feb 29, 2012
evrpc-internal.h Add an include to evrpc-internal to fix openbsd compilation warning Mar 12, 2014
evrpc.c Fix even more coverity warnings. Jan 8, 2014
evsignal-internal.h Add a new libevent_global_shutdown() to free all globals before exiting. Mar 22, 2012
evthread-internal.h Fix "function declaration isn’t a prototype" Feb 16, 2015
evthread.c evthread: fix evthread_setup_global_lock_() for debug-lock with a rea… Oct 4, 2015
evthread_pthread.c Clean up lingering _identifiers. Feb 29, 2012
evthread_win32.c Merge remote-tracking branch 'origin/patches-2.0' Dec 4, 2012
evutil.c evutil: mark ai_find_protocol() static (prototype-less) Aug 10, 2016
evutil_rand.c Merge remote-tracking branch 'origin/patches-2.0' Sep 19, 2013
evutil_time.c Implement new/free for struct evutil_monotonic_timer and export monot… Dec 4, 2014
ht-internal.h ht-internal: don't reset hth_table_length explicitly in name_##HT_CLEAR Jan 8, 2015
http-internal.h use ev_uint16_t instead of unsigned short for port Oct 25, 2016
http.c use ev_uint16_t instead of unsigned short for port Oct 25, 2016
iocp-internal.h Have all visible internal function names end with an underscore. Feb 29, 2012
ipv6-internal.h Convert include-guard macro convention to avoid reserved identifiers Feb 29, 2012
kqueue-internal.h Replace pipe-based notification with EVFILT_USER where possible Apr 11, 2012
kqueue.c Check for Mac OS X 10.4 kqueue bug properly Jul 12, 2016
libevent.pc.in Change use of AC_CHECK_LIB to AC_SEARCH_LIBS. Jul 10, 2009
libevent_core.pc.in libevent_core and libevent_extra also deserve a pkgconfig file Apr 20, 2016
libevent_extra.pc.in libevent_core and libevent_extra also deserve a pkgconfig file Apr 20, 2016
libevent_openssl.pc.in Use correct openssl libs and includes in pkgconfig file Nov 16, 2012
libevent_pthreads.pc.in Add pkgconfig files for libevent_{openssl,pthreads} Aug 10, 2010
listener.c listener: unlock lev on error in listener_read_cb() Mar 31, 2016
log-internal.h Actually use the log facility for reporting evdns problems. May 29, 2013
log.c Actually use the log facility for reporting evdns problems. May 29, 2013
make-event-config.sed Generate event-config.h with a single sed script Apr 27, 2012
make_epoll_table.py Implemented EV_CLOSED event for epoll backend (EPOLLRDHUP). Jan 18, 2014
minheap-internal.h Remove an unreachable return statement in minheap-internal.h Aug 1, 2013
mm-internal.h Convert include-guard macro convention to avoid reserved identifiers Feb 29, 2012
openssl-compat.h Make it build using OpenSSL 1.1.0 Oct 16, 2016
poll.c poll: Prevent libevent from spinning if POLLNVAL occurs Nov 4, 2016
ratelim-internal.h Have all visible internal function names end with an underscore. Feb 29, 2012
select.c Tweak the new evutil_weakrand_() code Apr 9, 2012
signal.c Merge remote-tracking branch 'github/20_win64_compilation' into 21_wi… Nov 2, 2012
strlcpy-internal.h Fix all identifiers with names beginning with underscore. Feb 29, 2012
strlcpy.c Fix all identifiers with names beginning with underscore. Feb 29, 2012
time-internal.h Implement new/free for struct evutil_monotonic_timer and export monot… Dec 4, 2014
util-internal.h evdns: export cancel via callbacks in util (like async lib core/extra… Mar 23, 2016
whatsnew-2.0.txt "buffer" spelling Feb 8, 2013
whatsnew-2.1.txt Add new APIs to whatsnew-2.1 Mar 17, 2014
win32select.c Don't use BSD u_* types. Aug 25, 2015

README.md

libevent logo

Appveyor Win32 Build Status Travis Build Status Coverage Status

0. BUILDING AND INSTALLATION (Briefly)

Autoconf

 $ ./configure
 $ make
 $ make verify   # (optional)
 $ sudo make install

Cmake (General)

The following Libevent specific Cmake variables are as follows (the values being the default).

# Installation directory for executables
EVENT_INSTALL_BIN_DIR:PATH=bin

# Installation directory for CMake files
EVENT_INSTALL_CMAKE_DIR:PATH=lib/cmake/libevent

## Installation directory for header files
EVENT_INSTALL_INCLUDE_DIR:PATH=include

## Installation directory for libraries
EVENT_INSTALL_LIB_DIR:PATH=lib

## Define if libevent should be built with shared libraries instead of archives
EVENT__BUILD_SHARED_LIBRARIES:BOOL=OFF

# Enable running gcov to get a test coverage report (only works with
# GCC/CLang). Make sure to enable -DCMAKE_BUILD_TYPE=Debug as well.
EVENT__COVERAGE:BOOL=OFF

# Defines if libevent should build without the benchmark exectuables
EVENT__DISABLE_BENCHMARK:BOOL=OFF

# Define if libevent should build without support for a debug mode
EVENT__DISABLE_DEBUG_MODE:BOOL=OFF

# Define if libevent should not allow replacing the mm functions
EVENT__DISABLE_MM_REPLACEMENT:BOOL=OFF

# Define if libevent should build without support for OpenSSL encrpytion
EVENT__DISABLE_OPENSSL:BOOL=ON

# Disable the regress tests
EVENT__DISABLE_REGRESS:BOOL=OFF

# Disable sample files
EVENT__DISABLE_SAMPLES:BOOL=OFF

# If tests should be compiled or not
EVENT__DISABLE_TESTS:BOOL=OFF

# Define if libevent should not be compiled with thread support
EVENT__DISABLE_THREAD_SUPPORT:BOOL=OFF

# Enables verbose debugging
EVENT__ENABLE_VERBOSE_DEBUG:BOOL=OFF

# When crosscompiling forces running a test program that verifies that Kqueue
# works with pipes. Note that this requires you to manually run the test program
# on the the cross compilation target to verify that it works. See cmake
# documentation for try_run for more details
EVENT__FORCE_KQUEUE_CHECK:BOOL=OFF

# set EVENT_STAGE_VERSION
EVENT__STAGE_VERSION:STRING=beta

More variables can be found by running cmake -LAH <sourcedir_path>

CMake (Windows)

Install CMake: http://www.cmake.org

 $ md build && cd build
 $ cmake -G "Visual Studio 10" ..   # Or whatever generator you want to use cmake --help for a list.
 $ start libevent.sln

CMake (Unix)

 $ mkdir build && cd build
 $ cmake ..     # Default to Unix Makefiles.
 $ make
 $ make verify  # (optional)

1. BUILDING AND INSTALLATION (In Depth)

Autoconf

To build libevent, type

 $ ./configure && make

(If you got libevent from the git repository, you will first need to run the included "autogen.sh" script in order to generate the configure script.)

You can run the regression tests by running

 $ make verify

Install as root via

 $ make install

Before reporting any problems, please run the regression tests.

To enable the low-level tracing build the library as:

 $ CFLAGS=-DUSE_DEBUG ./configure [...]

Standard configure flags should work. In particular, see:

--disable-shared Only build static libraries --prefix Install all files relative to this directory.

The configure script also supports the following flags:

--enable-gcc-warnings Enable extra compiler checking with GCC. --disable-malloc-replacement Don't let applications replace our memory management functions --disable-openssl Disable support for OpenSSL encryption. --disable-thread-support Don't support multithreaded environments.

CMake (Windows)

(Note that autoconf is currently the most mature and supported build enviroment for libevent; the cmake instructions here are new and experimental, though they should be solid. We hope that cmake will still be supported in future versions of Libevent, and will try to make sure that happens.)

First of all install http://www.cmake.org.

To build libevent using Microsoft Visual studio open the "Visual Studio Command prompt" and type:

$ cd <libevent source dir>
$ mkdir build && cd build
$ cmake -G "Visual Studio 10" ..   # Or whatever generator you want to use cmake --help for a list.
$ start libevent.sln

In the above, the ".." refers to the dir containing the Libevent source code. You can build multiple versions (with different compile time settings) from the same source tree by creating other build directories.

It is highly recommended to build "out of source" when using CMake instead of "in source" like the normal behaviour of autoconf for this reason.

The "NMake Makefiles" CMake generator can be used to build entirely via the command line.

To get a list of settings available for the project you can type:

$ cmake -LH ..

GUI

CMake also provides a GUI that lets you specify the source directory and output (binary) directory that the build should be placed in.

OpenSSL support

To build Libevent with OpenSSL support you will need to have OpenSSL binaries available when building, these can be found here: http://www.openssl.org/related/binaries.html

2. USEFUL LINKS:

For the latest released version of Libevent, see the official website at http://libevent.org/ .

There's a pretty good work-in-progress manual up at http://www.wangafu.net/~nickm/libevent-book/ .

For the latest development versions of Libevent, access our Git repository via

$ git clone https://github.com/libevent/libevent.git

You can browse the git repository online at:

https://github.com/libevent/Libevent

To report bugs, issues, or ask for new features:

Patches: https://github.com/libevent/libevent/pulls

OK, those are not really patches You fork, modify, and hit the "Create Pull Request" button. You can still submit normal git patchs via the mailing list.

Bugs, Features [RFC], and Issus: https://github.com/libevent/libevent/issues

Or you can do it via the mailing list.

There's also a libevent-users mailing list for talking about Libevent use and development:

http://archives.seul.org/libevent/users/

3. ACKNOWLEDGMENTS

The following people have helped with suggestions, ideas, code or fixing bugs:

  • Samy Al Bahra
  • Antony Antony
  • Jacob Appelbaum
  • Arno Bakker
  • Weston Andros Adamson
  • William Ahern
  • Ivan Andropov
  • Sergey Avseyev
  • Avi Bab
  • Joachim Bauch
  • Andrey Belobrov
  • Gilad Benjamini
  • Stas Bekman
  • Denis Bilenko
  • Julien Blache
  • Kevin Bowling
  • Tomash Brechko
  • Kelly Brock
  • Ralph Castain
  • Adrian Chadd
  • Lawnstein Chan
  • Shuo Chen
  • Ka-Hing Cheung
  • Andrew Cox
  • Paul Croome
  • George Danchev
  • Andrew Danforth
  • Ed Day
  • Christopher Davis
  • Mike Davis
  • Frank Denis
  • Antony Dovgal
  • Mihai Draghicioiu
  • Alexander Drozdov
  • Mark Ellzey
  • Shie Erlich
  • Leonid Evdokimov
  • Juan Pablo Fernandez
  • Christophe Fillot
  • Mike Frysinger
  • Remi Gacogne
  • Artem Germanov
  • Alexander von Gernler
  • Diego Giagio
  • Artur Grabowski
  • Diwaker Gupta
  • Kuldeep Gupta
  • Sebastian Hahn
  • Dave Hart
  • Greg Hazel
  • Nicholas Heath
  • Michael Herf
  • Savg He
  • Mark Heily
  • Maxime Henrion
  • Michael Herf
  • Greg Hewgill
  • Andrew Hochhaus
  • Aaron Hopkins
  • Tani Hosokawa
  • Jamie Iles
  • Xiuqiang Jiang
  • Claudio Jeker
  • Evan Jones
  • Marcin Juszkiewicz
  • George Kadianakis
  • Makoto Kato
  • Phua Keat
  • Azat Khuzhin
  • Alexander Klauer
  • Kevin Ko
  • Brian Koehmstedt
  • Marko Kreen
  • Ondřej Kuzník
  • Valery Kyholodov
  • Ross Lagerwall
  • Scott Lamb
  • Christopher Layne
  • Adam Langley
  • Graham Leggett
  • Volker Lendecke
  • Philip Lewis
  • Zhou Li
  • David Libenzi
  • Yan Lin
  • Moshe Litvin
  • Simon Liu
  • Mitchell Livingston
  • Hagne Mahre
  • Lubomir Marinov
  • Abilio Marques
  • Nicolas Martyanoff
  • Abel Mathew
  • Nick Mathewson
  • James Mansion
  • Nicholas Marriott
  • Andrey Matveev
  • Caitlin Mercer
  • Dagobert Michelsen
  • Andrea Montefusco
  • Mansour Moufid
  • Mina Naguib
  • Felix Nawothnig
  • Trond Norbye
  • Linus Nordberg
  • Richard Nyberg
  • Jon Oberheide
  • John Ohl
  • Phil Oleson
  • Alexey Ozeritsky
  • Dave Pacheco
  • Derrick Pallas
  • Tassilo von Parseval
  • Catalin Patulea
  • Patrick Pelletier
  • Simon Perreault
  • Dan Petro
  • Pierre Phaneuf
  • Amarin Phaosawasdi
  • Ryan Phillips
  • Dimitre Piskyulev
  • Pavel Plesov
  • Jon Poland
  • Roman Puls
  • Nate R
  • Robert Ransom
  • Balint Reczey
  • Bert JW Regeer
  • Nate Rosenblum
  • Peter Rosin
  • Maseeb Abdul Qadir
  • Wang Qin
  • Alex S
  • Gyepi Sam
  • Hanna Schroeter
  • Ralf Schmitt
  • Mike Smellie
  • Steve Snyder
  • Nir Soffer
  • Dug Song
  • Dongsheng Song
  • Hannes Sowa
  • Joakim Soderberg
  • Joseph Spadavecchia
  • Kevin Springborn
  • Harlan Stenn
  • Andrew Sweeney
  • Ferenc Szalai
  • Brodie Thiesfield
  • Jason Toffaletti
  • Brian Utterback
  • Gisle Vanem
  • Bas Verhoeven
  • Constantine Verutin
  • Colin Watt
  • Zack Weinberg
  • Jardel Weyrich
  • Jay R. Wren
  • Zack Weinberg
  • Mobai Zhang
  • Alejo
  • Alex
  • Taral
  • propanbutan
  • masksqwe
  • mmadia
  • yangacer
  • Andrey Skriabin
  • basavesh.as
  • billsegall
  • Bill Vaughan
  • Christopher Wiley
  • David Paschich
  • Ed Schouten
  • Eduardo Panisset
  • Jan Heylen
  • jer-gentoo
  • Joakim Söderberg
  • kirillDanshin
  • lzmths
  • Marcus Sundberg
  • Mark Mentovai
  • Mattes D
  • Matyas Dolak
  • Neeraj Badlani
  • Nick Mathewson
  • Rainer Keller
  • Seungmo Koo
  • Thomas Bernard
  • Xiao Bao Clark
  • zeliard
  • Zonr Chang
  • Kurt Roeckx
  • Seven
  • Simone Basso
  • Vlad Shcherban
  • Tim Hentenaar

If we have forgotten your name, please contact us.