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
49868b618a
r15316@tombo: nickm | 2008-04-24 20:58:36 -0400
...
Rename internal memory management functions from event_malloc() etc to mm_malloc() etc.
svn:r725
2008-04-25 01:18:08 +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
Niels Provos
193c06a7ed
fix a bug in which evbuffer_add_vfprintf would loop forever; avoid
...
fragmentation in evbuffer_expand by increasing the size of the last buffer
in the chain; as a result with have to keep track of the previous_to_last
chain; provide a evbuffer_validate() function in the regression test to
make sure that all evbuffer are internally consistent.
svn:r699
2008-03-31 02:04:34 +00:00
Niels Provos
00382110b2
address nick's comments and make evbuffer_pullup more efficient
...
svn:r680
2008-02-29 05:23:49 +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
Nick Mathewson
d71da6f737
r18484@catbus: nickm | 2008-02-28 12:47:20 -0500
...
Use event_warn() function, not fprintf-to-stderr.
svn:r676
2008-02-28 17:47:30 +00:00
Nick Mathewson
0e7cbe6508
r18482@catbus: nickm | 2008-02-28 12:38:40 -0500
...
Fix GCC 4.2 warnings; fix includes in subdirs.
svn:r675
2008-02-28 17:38:52 +00:00
Niels Provos
5c70ea4c9d
improved code for evbuffer; avoids memcpy
...
svn:r674
2008-02-28 02:47:43 +00:00
Niels Provos
67bf29ad72
simplify evbuffer by removing orig_buffer
...
svn:r654
2008-02-23 06:02:04 +00:00
Nick Mathewson
1120f04f3e
r16731@catbus: nickm | 2007-11-25 16:52:53 -0500
...
Replace all fds on non-unix-specific APIs with evutil_socket_t, which is int on unix and intptr_t on win32.
svn:r552
2007-11-25 21:53:06 +00:00
Nick Mathewson
6773a59721
r14953@tombo: nickm | 2007-11-25 15:56:40 -0500
...
Replace evbuffer_readline with a more powerful evbuffer_readln that can handle more EOL styles, and that can give useful results when there are NUL characters inside the returned values. Includes regression tests.
svn:r550
2007-11-25 21:32:26 +00:00
Nick Mathewson
7eb250e9c5
r14939@tombo: nickm | 2007-11-25 11:59:26 -0500
...
New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions.
svn:r541
2007-11-25 17:14:19 +00:00
Nick Mathewson
4e1ec3e05e
Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing.
...
svn:r499
2007-11-07 21:01:26 +00:00
Nick Mathewson
e72661d2ff
r16509@catbus: nickm | 2007-11-07 02:08:32 -0500
...
Stop using C++ style comments.
svn:r497
2007-11-07 07:33:31 +00:00
Nick Mathewson
db43c1e111
On win32, sockets apparently can't be used with ReadFile and WriteFile: You need send() and recv() instead. Also, you need to use ioctlsocket() with sockets, not ioctl. [Fixes evbuffer regression tests.]
...
svn:r448
2007-09-20 19:36:03 +00:00
Niels Provos
41c69fc335
fix typo in comments
...
svn:r399
2007-08-19 17:26:02 +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
0c2808246a
support removing of http callbacks and removing of registered RPCs
...
svn:r355
2007-05-23 05:20:59 +00:00
Niels Provos
4408a5f8fc
fix evbuffer_find off by one; found by Ken Cox; regression test by him
...
and fix by me
svn:r353
2007-04-19 03:13:12 +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
58f42c79e7
fix handling of chunked requests
...
svn:r328
2007-02-14 16:59:47 +00:00
Niels Provos
22e53c7a84
make it work on freebsd; from phil oleson
...
svn:r314
2007-01-27 04:10:08 +00:00
Niels Provos
de4e25f1d0
evbuffer_find fix from Dug Song
...
svn:r308
2007-01-06 02:25:50 +00:00
Niels Provos
79d2ca8cac
fix a potential problem in multiple handling of va_list; use va_copy instead;
...
from Alejo.
svn:r251
2006-11-10 02:16:16 +00:00
Niels Provos
9f7d28bb81
make it compile with mingw; from Nick
...
svn:r235
2006-09-27 03:07:38 +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
7b78c82823
limit the amount of data bufferevents are going to consume to something
...
reasonable; in some circumstances it could happen that libevent happily
allocated 100MB in read buffers without telling the user; found by
christopher maxwell - parts of these changes are from his patch.
svn:r200
2006-02-13 01:51:58 +00:00
Niels Provos
36bedaef19
another fix from art
...
svn:r194
2006-01-22 05:06:14 +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
11a40d478e
event.3
...
svn:r184
2005-09-20 15:59:00 +00:00
Niels Provos
e1759c7bbd
fix issue with signedness warnings; from Alexander von Gernler
...
svn:r169
2005-06-19 20:28:20 +00:00
Niels Provos
81bd0a0687
bufferevents would not correctly detect EOF on read; reported by
...
Jonathan Brannan
svn:r167
2005-06-10 07:42:14 +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
5e2ba12a89
fixes from alexander von gernler
...
svn:r148
2005-04-14 23:28:06 +00:00
Niels Provos
32bed8f9b6
build fixes from nick mathewson
...
svn:r139
2005-04-01 04:20:39 +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
6db3da27e2
should work a little bit better with solaris compiler
...
svn:r111
2004-07-19 06:18:10 +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
de5fc61928
make it compile on systems without vasprintf
...
svn:r107
2004-06-11 04:42:56 +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
849d524912
license
...
svn:r104
2004-04-13 06:22:48 +00:00
Niels Provos
fbf01c7f04
support for low and high watermarks
...
svn:r101
2004-04-04 02:20:21 +00:00
Niels Provos
5908bd7213
provided buffered events
...
svn:r95
2004-03-23 03:43:53 +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