sample


Log

Author Commit Date CI Message
Mark Ellzey 2d67b638 2012-02-14T15:37:58 Changed OPENSSL_LDFLAGS to OPENSSL_LIBADD
Mark Ellzey 92781968 2012-02-14T15:01:02 Added OPENSSL_LDFLAGS env variable which is appended to SSL checks. If openssl is not installed system-wide or not compiled as a shared library, some systems require various link flags (e.g., -ld).
Nick Mathewson e49e2891 2012-02-10T17:29:53 Update copyright notices to 2012
Nick Mathewson 7206e8cd 2012-01-16T14:45:31 Suppress a gcc warning from ignoring fwrite return in http-sample.c Found by Steve Snyder
Gisle Vanem a3f320e8 2011-11-09T00:17:56 Improve win32 behavior of dns-sample.c codex
Nick Mathewson 7f82382a 2011-09-25T07:39:00 Use _SOURCES, not _sources, in sample/Makefile.am Found by Adrian Chadd
Sergey Avseyev 9ae061ac 2011-09-15T13:06:38 le-proxy and regress depend on openssl directly
Harlan Stenn 7c11e51e 2011-08-27T05:48:11 Clean up some problems identified by Coverity.
Nick Mathewson 4a5c82d6 2011-07-15T10:20:01 Use AM_CPPFLAGS in sample/Makefile.am, not AM_CFLAGS Reported by Dagobert Michelsen.
Peter Rosin 70be7d17 2011-05-25T10:57:16 MSVC does not provide S_ISDIR, so provide it manually.
Peter Rosin 7b819f2d 2011-05-04T16:37:58 Libtool brings in the dependencies of libevent_openssl.la automatically
Peter Rosin 274dd036 2011-05-04T16:34:28 libssl depends on libcrypto, not the other way around.
Sebastian Hahn 744c7456 2011-04-23T02:20:59 Remote some dead code from dns-example.c Found by Dave Heart
Sebastian Hahn 4bac793e 2011-04-11T18:03:02 Be nice and "handle" error return values in sample code Caught by clang's static analyzer
Nick Mathewson 2e9f6655 2011-04-14T14:15:13 Fix a couple of memory leaks in samples/http-server.c. Found by Dave Hart.
Nick Mathewson 15b2408c 2011-02-22T16:13:49 Use $(), not @@, for LIBEVENT_GC_SECTIONS
Dave Hart 0965c563 2011-02-13T01:50:40 Use the gcc -ffunction-segments feature to allow gc when linking with static libevent
Nick Mathewson 4eb281c8 2011-02-13T01:29:54 FIX: comment internal headers used in sample code.
Nick Mathewson eb692be9 2011-02-13T01:27:06 NM: Fix sample/http-server ipv6 fixes Fix 1: Use #include "../xyz" rather than #include <../xyz> Fix 2: util-internal.h includes ipv6-internal.h, which in turn defines a replacement AF_INET6 on platforms that don't have it. As such, the AF_INET6 checks shouldn't be needed. (right?)
Harlan Stenn bbf55150 2011-02-13T01:25:33 Include util-internal.h as needed to build on platforms with no sockaddr_storage
Harlan Stenn 10c834c4 2011-02-13T01:22:25 Include arpa/inet.h as needed on HPUX
Nick Mathewson 22f4af65 2010-12-09T11:43:12 Remove end-of-line whitespace
Nick Mathewson 13fd242d 2010-11-30T00:53:16 Fix win32 build of http-server.c with unicode enabled
Nick Mathewson 18d03276 2010-11-29T20:39:09 make http-server example code build on win32
Nick Mathewson ad66dfd0 2010-11-29T20:13:19 Fix http-server.c compilation on freebsd
Nick Mathewson 4881778c 2010-11-26T13:28:48 Fix a misplaced ) in http_server.c
Nick Mathewson 4e794d5d 2010-10-18T13:44:05 Add a basic example of how to write a static HTTP server.
Nick Mathewson 7bcace2d 2010-11-22T21:02:34 Fix some irix compilation warnings spotted by Kevin Bowling
Nick Mathewson ec347b92 2010-07-07T16:45:03 Move event-config.h to include/event2 This change means that all required include files are in event2, and all files not in event2/* are optional.
Trond Norbye 13b912e4 2010-08-01T21:39:48 Fixed compilation of sample/le-proxy.c on win32
Nick Mathewson d89fdba4 2010-07-05T12:28:22 Make sample/hello_world work on windows We forgot to include the WSAStartup call in main(). Patch from an anonymous user on Sourceforge. Fixes bug 3025354.
Nick Mathewson 2c2618d8 2010-03-05T13:00:15 more whitespace normalization
Nick Mathewson c7cf6f00 2010-03-05T12:47:46 Replace users of "int fd" with "evutil_socket_t fd" in portable code Remeber, win32 has a socket type that's actually a handle, so if there's a chance that code is run on win32, we can't use "int" as the socket type. This isn't a blind search-and-replace: sometimes an fd is really in fact for a file, and not a socket at all.
Nick Mathewson 4faeaea9 2010-02-19T03:39:50 Clean up formatting: function/keyword spacing consistency. - Keywords always have a space before a paren. Functions never do. - No more than 3 blank lines in a row.
Nick Mathewson e5bbd40a 2010-02-18T17:41:15 Clean up formatting: use tabs, not 8-spaces, to indent.
Nick Mathewson 8fdf09c0 2010-02-18T17:08:50 Clean up formatting: Disallow space-before-tab.
Nick Mathewson b72be50d 2010-02-18T13:52:04 Add some headers to fix freebsd compilation
Brodie Thiesfield 000a33ec 2010-02-03T23:27:40 Make Libevent 1.4.12 build on win32 with Unicode enabled. This patch fixes calls to the win32 api to explicitly call the char* versions of the functions. This fixes build failures when libevent is built with the UNICODE define.
Nick Mathewson f4190bfb 2010-01-27T01:47:36 Update time-test.c to use event2 time-test.c wasn't crazy, but it used some old interfaces. There are probably more cleanups and explanations to do beyond the ones here.
Nick Mathewson d60a1bd5 2010-01-27T01:46:41 Clarify status of example programs (That is, add comments to say that dns-example and le-proxy are recent and ugly; event-test is old and ugly.)
Nick Mathewson becb9f9c 2010-01-27T01:46:23 Add a new "hello world" sample program
Evan Jones f6430ac1 2009-12-08T17:02:24 Update sample/signal-test.c to use newer APIs and not leak.
Nick Mathewson 625a261a 2009-11-17T02:40:14 OpenBSD demands that sys/types.h be included before sys/socket.h svn:r1539
Nick Mathewson 86f57420 2009-11-16T22:25:46 Add two implementations of getaddrinfo: one blocking and one nonblocking. The entry points are evutil_getaddrinfo and evdns_getaddrinfo respectively. There are fairly extensive unit tests. I believe this code conforms to RFC3493 pretty closely, but there are probably more issues. It should get tested on more platforms. This code means we can dump the well-intentioned but weirdly-implemented bufferevent_evdns and evutil_resolve code. svn:r1537
Nick Mathewson 784b8773 2009-11-06T21:46:57 We do not work any more without an event-config.h; stop pretending that it is meaningful to check for HAVE_CONFIG_H svn:r1516
Nick Mathewson ae5fbf49 2009-11-05T22:24:21 Actually add the new dns-example.c code. :p svn:r1512
Nick Mathewson d2e7e65d 2009-11-05T22:19:09 Move the evdns sample code into the sample directory and fix it not to use any deprecated APIs. svn:r1511
Nick Mathewson 516452b7 2009-10-30T21:08:29 Keep openssl errors associated with the right bufferevent object. OpenSSL has a per-thread error stack, and really doesn't like you leaving errors on the stack. Rather than discard the errors or force the user to handle them, this patch pulls them off the openssl stack and puts them on a stack associated with the bufferevent_openssl. If the user leaves them on the stack then, it won't affect any other connections. This bug was found by Roman Puls. Thanks! svn:r1481
Nick Mathewson c119e4a1 2009-10-23T17:40:00 Improve the behavior of le-proxy in a few cases. svn:r1458
Nick Mathewson 5b5b880b 2009-07-28T19:41:39 Various MSVC cleanups from Brodie Thiesfield. svn:r1385
Nick Mathewson 709c21c4 2009-07-28T04:03:57 Bufferevent support for openssl. This code adds a new Bufferevent type that is only compiled when the openssl library is present. It supports using an SSL object and an event alert mechanism, which can either be an fd or an underlying bufferevent. There is still more work to do: the unit tests are incomplete, and we need to support flush and shutdown much better. Sometimes events are generated needlessly: this will hose performance. There's a new encrypting proxy in sample/le-proxy.c. This code has only been tested on OSX, and nowhere else. svn:r1382
Nick Mathewson 043515bc 2009-07-14T18:50:06 Stop using C++ style comments. svn:r1343
Nick Mathewson dfe321e1 2009-05-22T20:11:29 Add missing windows include in time-test.c svn:r1311
Nick Mathewson e8343e9f 2009-05-22T19:11:59 work around missing __func__ in sample code svn:r1310
Nick Mathewson 8889a770 2009-01-27T22:30:46 Replace all use of config.h with event-config.h. svn:r1064
Nick Mathewson 9993137c 2009-01-27T21:10:31 Remove all trailing whitespace in all the source files. svn:r1063
Niels Provos 83d2a34c 2009-01-15T06:15:24 rename time-test in comment to signal-test svn:r1013
Nick Mathewson 0e7cbe65 2008-02-28T17:38:52 r18482@catbus: nickm | 2008-02-28 12:38:40 -0500 Fix GCC 4.2 warnings; fix includes in subdirs. svn:r675
Nick Mathewson ce4ee418 2007-11-26T19:18:49 r16733@catbus: nickm | 2007-11-26 14:18:25 -0500 Add an --enable-gcc-warnings option (lifted from Tor) to the configure script. When provided, and when we are using GCC, we enable a bunch of extra GCC warnings in the compiler. Also, make the code all build happily with these warnings. svn:r553
Nick Mathewson 97917e68 2007-11-10T07:49:13 r16588@catbus: nickm | 2007-11-10 02:47:14 -0500 Another include for sample. Patch from Christopher Layne. svn:r507
Nick Mathewson f74e7258 2007-11-07T06:01:57 r16501@catbus: nickm | 2007-11-07 01:00:31 -0500 This is one of those patches which will either make matters far simpler after the bugs shake out, or will get reverted pretty quick once we realize that it is a stupid idea. We now post-process the config.h file into a new event-config.h file, whose macros are prefixed with _EVENT_ and which is thus safe for headers to include. Using this, we can define replacement timeval manipulation functions in evutil.h, and use them uniformly through our code. We can also detect which headers are needful in event.h, and include them as required. This is also the perfect time to remove the long-deprecated acconfig.h file, so that autoheader no longer warns. Should resolve the following issues: [ 1826530 ] Header files should have access to autoconf output. [ 1826545 ] acconfig.h is deprecated. [ 1826564 ] On some platforms, event.h can't be included alone. svn:r492
Nick Mathewson a36d4a93 2007-08-20T14:44:15 r14699@catbus: nickm | 2007-08-20 10:42:57 -0400 Use $top_srcdir and $srcdir variables to refer to source paths in Makefile.am. This makes it possible to build libevent from a separate directory. Patch from Kelly Anderson. svn:r400
Nick Mathewson 21a7e7ed 2007-08-10T15:59:31 r14498@catbus: nickm | 2007-08-10 11:58:32 -0400 Fix compilation warnings in trunk on linux with gcc 4.1.2. In time-test.c, always include time.h, so that time() is defined. In test/Makefile.am, put -I../compat in CPPFLAGS, and fix a typo. In test/regress.c, cast unsigned char pointers to char* before passing them to str[n]cmp. svn:r385
Niels Provos aa106169 2007-07-31T00:21:04 use AM_CLFAGS from Jan Kneschke svn:r376
Niels Provos d1848a88 2007-06-14T04:38:42 include config.h svn:r365
Niels Provos b5d2f9a2 2007-03-01T06:25:18 rolling back r339: evconfig.h does not work svn:r341
Niels Provos 127c260b 2007-02-28T04:02:29 make evconfig.h available as installed header file; not really ideal but good enough for me; from Nick Mathewson svn:r339
Niels Provos fdfa743c 2005-04-23T02:48:49 libtoolize; from Nick Mathewson svn:r153
Niels Provos f5a62ed3 2004-12-01T19:59:00 make a separate verify target svn:r124
Niels Provos 025d1bc2 2004-05-24T00:19:52 fix some of the windows compile issues; make buffer.c faster; support signals via pipes. svn:r105
Niels Provos 9d26a46c 2003-09-25T03:29:37 windows support svn:r79
Niels Provos 9d2401ff 2002-10-07T00:47:34 portability fixes from marius@umich.edu. svn:r35
Niels Provos 5f865858 2002-07-26T14:45:50 sync with openbsd; API change: timeout_ is now evtimer_ svn:r29
Niels Provos d10f85db 2002-04-10T02:10:47 signal support for kqueue; support of EV_PERSIST flag to event_set svn:r18
Niels Provos b855bc55 2002-04-10T00:31:31 initial support for signals (only for select now) based on code from Dug Song <dugsong@monkey.org> svn:r17
Niels Provos dbaa408e 2002-04-09T19:30:22 port to solaris svn:r16
Niels Provos 5b27aa03 2002-04-09T17:42:15 further automake conversion svn:r10
Niels Provos aa6567fe 2002-04-09T15:14:06 Initial revision svn:r2