55 Commits

Author SHA1 Message Date
Nick Mathewson
f74e7258fd 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
2007-11-07 06:01:57 +00:00
Nick Mathewson
29420339dc r16496@catbus: nickm | 2007-11-06 23:58:52 -0500
Clarify some doxygen in event.h


svn:r489
2007-11-07 05:02:14 +00:00
Niels Provos
a527151846 make event_init should return struct event_base *
svn:r481
2007-11-07 01:48:44 +00:00
Niels Provos
dc2317f921 improve doxygen documentation
svn:r473
2007-11-04 06:35:29 +00:00
Niels Provos
2026b21598 remove last vestiges of RBTREE
svn:r470
2007-11-03 23:53:49 +00:00
Niels Provos
30ae40cc52 switch timeouts to a min heap; from Maxim Yegorushkin
svn:r467
2007-11-03 18:04:53 +00:00
Nick Mathewson
d69a4c9ec4 r15097@catbus: nickm | 2007-09-18 11:08:42 -0400
Wrap all newly-added Doxygen comments to fit in a consistent 80 columns, and remove all their trailing whitespace.


svn:r437
2007-09-18 15:12:20 +00:00
Nick Mathewson
7135ffb6fc r15096@catbus: nickm | 2007-09-18 11:02:12 -0400
Add Doxygen documentation to header files; patch from Mark Heily.


svn:r436
2007-09-18 15:12:09 +00:00
Niels Provos
3ad6b47e03 make clock_monotonic work; do not use default timeout;
from Scott Lamb, plus some fixes from me.


svn:r371
2007-07-30 22:41:00 +00:00
Niels Provos
b15d715cbc make event_rpcgen.py use the uint_ types;
make event.h include stdint.h (wonder which OS that will break)


svn:r369
2007-07-06 03:36:31 +00:00
Niels Provos
753ffa563b convert u_int8_t types to uint8_t types
svn:r368
2007-06-30 19:08:46 +00:00
Niels Provos
f0ff792afa fixes from Joerg Sonnenberger:
http.c is a violation of the ctype(3) interface and an unused function.

test/regress_http.c are incorrect format strings.

test/regress.c uses raise(3) from signal.h.

evdns.c: evdns_error_strings is unused. The GET* macros can eat the
semicolon from the expression. pos is passed in as off_t, so just pass
that down. When assigning negativ values to unsigned variables, an
explicit cast is considered good style.


svn:r367
2007-06-30 18:58:34 +00:00
Niels Provos
41b7cbc381 more the signal base into the event base; this removes global state and makes signals
work better with threading; from Wouter Wijngaards
small fixes for kqueue and style by me


svn:r351
2007-03-10 06:37:53 +00:00
Niels Provos
b5d2f9a255 rolling back r339: evconfig.h does not work
svn:r341
2007-03-01 06:25:18 +00:00
Niels Provos
127c260bb7 make evconfig.h available as installed header file; not
really ideal but good enough for me; from Nick Mathewson


svn:r339
2007-02-28 04:02:29 +00:00
Niels Provos
f86cead099 remove artifical 16-bit restriction on evrpc entries
svn:r337
2007-02-24 08:33:07 +00:00
Niels Provos
58f42c79e7 fix handling of chunked requests
svn:r328
2007-02-14 16:59:47 +00:00
Niels Provos
ba748012ba add prototype for bufferevent_base_set; from thorsten glaser
svn:r323
2007-02-09 07:52:04 +00:00
Niels Provos
868f10e7c9 mingw fixes from Nick
svn:r271
2006-11-22 01:21:10 +00:00
Niels Provos
b6b933af5c Protect EVENT_* macros - () were missing
svn:r237
2006-10-04 03:45:10 +00:00
Niels Provos
6813af3f11 move http related prototypes to evhttp.h
svn:r214
2006-06-10 22:37:21 +00:00
Niels Provos
2e8051f593 introduce a way to free the base from Nick Mathewson <nickm@freehaven.net>
svn:r210
2006-03-28 04:40:54 +00:00
Niels Provos
38b33048eb make a simple test for HTTP POST requests
svn:r205
2006-02-27 02:27:37 +00:00
Niels Provos
88bd79439d make it compile on mac os x
svn:r202
2006-02-13 04:53:58 +00:00
Niels Provos
896bf3a260 many changes for fixing a small bug: post requests would not send the post
data.  I took the opportunity to reorganize a bit.


svn:r201
2006-02-13 02:22:48 +00:00
Niels Provos
a3bb4a035f I often need some very simple HTTP functionality, so this is a first stab
at integrating something really simple with HTTP.  The interface is still
evolving as I start messing with it.  Not all the interfaces are properly
exported yet.

I am also trying to figure out how to intelligently hide the details about
the different structures from users, so that that things can be changed
around later.


svn:r196
2006-01-22 05:08:50 +00:00
Niels Provos
8d1317d71c add evbuffer_add_vprintf interface from artur grabowski; add some testing
svn:r188
2005-12-06 03:26:28 +00:00
Niels Provos
50f7aaef6b make it compile on mac os x
svn:r183
2005-09-09 06:56:12 +00:00
Niels Provos
32acc283c8 a few more bug fixes
svn:r177
2005-08-27 06:29:52 +00:00
Niels Provos
c4e60994a2 including the tagging code that is required by event_rpcgen.py; test the
new functionality.


svn:r172
2005-08-22 01:34:34 +00:00
Niels Provos
425fc0d574 provide a function to read lines from buffers; comes in handy for many
AscII protocols.


svn:r154
2005-04-23 02:53:39 +00:00
Niels Provos
720f7fcc0d event_base_loop and some event logging fixes.
svn:r140
2005-04-02 08:43:55 +00:00
Niels Provos
fbdaf3ab62 debugging callbacks from Nick Mathewson <nickm@freehaven.net>
svn:r136
2005-03-29 07:03:10 +00:00
Niels Provos
99442c6f00 windows fixes from Nick Mathewson <nickm@freehaven.net>
svn:r135
2005-03-29 06:54:36 +00:00
Niels Provos
c5e4eee03b event_get_version() and event_get_method() from
Nick Mathewson <nickm@freehaven.net>


svn:r133
2005-02-25 05:28:57 +00:00
Niels Provos
cacd83983f documentation on thread safe events
svn:r126
2004-12-01 20:10:16 +00:00
Niels Provos
256460459e provide more base-based functions :-)
svn:r125
2004-12-01 20:04:54 +00:00
Niels Provos
8773c4c96c make libevent thread-safe; first cut
svn:r122
2004-11-25 09:50:18 +00:00
Niels Provos
fa6c304d9e support for event priorities; active events are scheduled into priority queues;
lower priorities get always processed before higher priorities


svn:r120
2004-09-19 21:08:09 +00:00
Niels Provos
44d88ea606 change evbuffer_read so that it reads directly into the memory allocated to
the evbuffer; this avoids one unnecessary data copy.


svn:r110
2004-07-13 08:02:45 +00:00
Niels Provos
025d1bc220 fix some of the windows compile issues; make buffer.c faster; support
signals via pipes.


svn:r105
2004-05-24 00:19:52 +00:00
Niels Provos
fbf01c7f04 support for low and high watermarks
svn:r101
2004-04-04 02:20:21 +00:00
Niels Provos
246d8583c0 allow the write callback to called even if there is no buffered data
svn:r96
2004-03-23 04:05:37 +00:00
Niels Provos
5908bd7213 provided buffered events
svn:r95
2004-03-23 03:43:53 +00:00
Niels Provos
cd699abf44 support event_loopexit(); idea from marius; and fix event_once()
svn:r94
2004-03-22 21:46:45 +00:00
Niels Provos
ec2c1db47e new event_once interface; start of buffering interface for buffered events
svn:r93
2004-02-22 21:17:23 +00:00
Niels Provos
c3f496c71b minor corrections; change license to 3-clause BSD license
svn:r84
2003-10-04 23:27:26 +00:00
Niels Provos
e506eaf79e constify; some windows stuff by mike davis; fix a poll bug
svn:r77
2003-09-25 03:26:53 +00:00
Niels Provos
f1cf632254 add timeout_ defines back for backward compatibility.
svn:r30
2002-09-06 17:13:08 +00:00
Niels Provos
5f8658582e sync with openbsd; API change: timeout_ is now evtimer_
svn:r29
2002-07-26 14:45:50 +00:00