Name Description Size
dns-example.c This example code shows how to use the high-level, low-level, and server-level interfaces of evdns. XXX It's pretty ugly and should probably be cleaned up. 6759
event-read-fifo.c This sample code shows how to use Libevent to read from a named pipe. XXX This code could make better use of the Libevent interfaces. XXX This does not work on Windows; ignore everything inside the _WIN32 block. On UNIX, compile with: cc -I/usr/local/include -o event-read-fifo event-read-fifo.c \ -L/usr/local/lib -levent 3421
hello-world.c This example program provides a trivial server program that listens for TCP connections on port 9995. When they arrive, it writes a short message to each client connection, and closes each connection once it is flushed. Where possible, it exits cleanly in response to a SIGINT (ctrl-c). 3471
hostcheck.c This file is an amalgamation of hostcheck.c and most of rawstr.c from cURL. The contents of the COPYING file mentioned above are: COPYRIGHT AND PERMISSION NOTICE Copyright (c) 1996 - 2013, Daniel Stenberg, <daniel@haxx.se>. All rights reserved. Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder. 6623
hostcheck.h HEADER_CURL_HOSTCHECK_H 1259
http-connect.c 3479
http-server.c A trivial static http webserver using Libevent's evhttp. This is not the best code in the world, and it does some fairly stupid stuff that you would never want to do in a production webserver. Caveat hackor! 13730
https-client.c This is an example of how to hook up evhttp with bufferevent_ssl It just GETs an https URL given on the command-line and prints the response body to stdout. Actually, it also accepts plain http URLs to make it easy to compare http vs https code paths. Loosely based on le-proxy.c. 13591
include.am 1911
le-proxy.c This example code shows how to write an (optionally encrypting) SSL proxy with Libevent's bufferevent layer. XXX It's a little ugly and should probably be cleaned up. 7534
openssl_hostname_validation.c Obtained from: https://github.com/iSECPartners/ssl-conservatory 7101
openssl_hostname_validation.h Obtained from: https://github.com/iSECPartners/ssl-conservatory 2251
signal-test.c Compile with: cc -I/usr/local/include -o signal-test \ signal-test.c -L/usr/local/lib -levent 1380
time-test.c XXX This sample code was once meant to show how to use the basic Libevent interfaces, but it never worked on non-Unix platforms, and some of the interfaces have changed since it was first written. It should probably be removed or replaced with something better. Compile with: cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent 2217