329 Commits

Author SHA1 Message Date
Nick Mathewson
957e9fd829 r19607@catbus: nickm | 2008-05-05 13:49:44 -0400
Hack to make sure that there is always a working fast EVENT_FD()


svn:r777
2008-05-05 17:49:52 +00:00
Nick Mathewson
bc6da5ea79 r19600@catbus: nickm | 2008-05-05 11:34:06 -0400
Move EV_* flags into event.h; they are a necessary part of the public API.


svn:r774
2008-05-05 15:45:39 +00:00
Nick Mathewson
d0c3644e63 r19599@catbus: nickm | 2008-05-05 11:26:18 -0400
Turn event_initialized() and friends into a function; add function equivalents for EVENT_FD and EVENT_SIGNAL.


svn:r773
2008-05-05 15:45:30 +00:00
Niels Provos
181007b9cf make event_assign void; it cannot return an error
svn:r763
2008-05-03 22:14:44 +00:00
Niels Provos
1d30750b1d support for periodic timeouts
svn:r762
2008-05-03 22:10:09 +00:00
Niels Provos
8c750eaff8 separate signal events from io events
svn:r760
2008-05-03 21:37:33 +00:00
Niels Provos
f04497e493 introduce evbuffer_reserve_space() and evbuffer_commit_space() to make processing in filters more efficient
svn:r757
2008-05-03 03:05:28 +00:00
Niels Provos
becc89b778 introduce evbuffer_contiguous_space() and use it in the zlib filter test
svn:r756
2008-05-03 02:37:18 +00:00
Nick Mathewson
5fbc7f0aee r15439@tombo: nickm | 2008-05-02 12:28:08 -0400
use event_assign internall; switch uses of event_set to use event_assign instead.


svn:r755
2008-05-02 16:28:25 +00:00
Niels Provos
522480f5ce improve documentation for bufferevent.h
svn:r750
2008-04-30 01:01:57 +00:00
Niels Provos
682adc443b support input/output filters for bufferevents
svn:r748
2008-04-30 00:09:16 +00:00
Nick Mathewson
9626a421de r15341@tombo: nickm | 2008-04-29 14:09:50 -0400
Use internal implementation for evutil_timercmp() everywhere, to avoid bugs when the platform timercmp() has never heard of <= or >=.  Also, replace timercmp() usage in min_heap.c with call to evutil_timercmp().


svn:r744
2008-04-29 18:11:23 +00:00
Niels Provos
9485ff9a66 introduce bufferevent_setcb and bufferevent_setfd to allow better manipulation of bufferevents
svn:r737
2008-04-27 20:40:56 +00:00
Niels Provos
dd183f7c97 provide bufferevent_input and bufferevent_output without requiring knowledge of the structure
svn:r734
2008-04-27 00:32:10 +00:00
Niels Provos
3278012f33 expose bufferevent_setwatermark via header files and fix high watermark on read
svn:r729
2008-04-26 00:35:17 +00:00
Niels Provos
89f63b205d add bufferevent_read_buffer function
svn:r728
2008-04-25 02:44:46 +00:00
Nick Mathewson
94fb4d0a1e r15317@tombo: nickm | 2008-04-24 21:17:49 -0400
Add new functions to be more threadsafe (and structure-ignorant) than event_set.


svn:r726
2008-04-25 01:18:18 +00:00
Nick Mathewson
beb39f5770 r15218@tombo: nickm | 2008-04-17 15:10:13 -0400
Add a missing #include <stdarg.h>


svn:r715
2008-04-17 19:16:30 +00:00
Nick Mathewson
963ae2cf42 r15212@tombo: nickm | 2008-04-16 17:01:21 -0400
Remove some needless includes


svn:r712
2008-04-16 21:01:31 +00:00
Nick Mathewson
0ac73078ed r15193@tombo: nickm | 2008-04-16 16:00:35 -0400
Split event.h into several new headers in include/event2.  event.h is now just a wrapper that includes all the subheaders.


svn:r711
2008-04-16 20:01:51 +00:00
Nick Mathewson
0c843507ab r19301@catbus: nickm | 2008-04-10 14:54:46 -0400
Forward-port: Correct the documentation on evbuffer_add_[v]printf: Fix for bug 1914464.


svn:r705
2008-04-10 19:25:11 +00:00
Niels Provos
cb50f615d4 rename lock create callback functions; as suggested by nick
svn:r691
2008-03-11 05:26:30 +00:00
Niels Provos
c182baca10 switch thread support so that locks get allocated as they are needed.
svn:r690
2008-03-10 03:17:20 +00:00
Nick Mathewson
6a92ec0b0f r18547@catbus: nickm | 2008-03-04 14:46:42 -0500
Fix compilation with --enable-gcc-warnings


svn:r689
2008-03-04 19:47:01 +00:00
Niels Provos
0c49e456f1 document thread functions
svn:r688
2008-03-04 05:42:20 +00:00
Niels Provos
968fd5c06f forgot this header file
svn:r685
2008-03-02 21:39:49 +00:00
Niels Provos
558de9b377 Provide OpenSSL style support for multiple threads accessing the same event_base
svn:r684
2008-03-02 21:18:33 +00:00
Nick Mathewson
0322ce0a3b r18486@catbus: nickm | 2008-02-28 13:35:53 -0500
Make offsetof into evutil_offsetof.  Be a little more willing to call evbuffer_chain_align() from evbuffer_expand().  Clarify some docs, and add some XXX comments to note questionable areas.


svn:r677
2008-02-28 18:36:03 +00:00
Niels Provos
5c70ea4c9d improved code for evbuffer; avoids memcpy
svn:r674
2008-02-28 02:47:43 +00:00