Nick Mathewson
ea4b8724c0
checkpoint work on big bufferevent refactoring
...
svn:r1095
2009-02-02 19:22:13 +00:00
Nick Mathewson
8d3a10f8f1
Support temporarily suspending an evbuffer callback. This is different from disabling the callback, since we want to process changes, but not just yet.
...
svn:r1091
2009-02-01 01:43:58 +00:00
Nick Mathewson
2e50658d8d
Fix a typo in buffer.h
...
svn:r1089
2009-02-01 01:07:33 +00:00
Niels Provos
66b2a7ffb7
test evbuffer_add_reference
...
svn:r1068
2009-01-29 03:20:40 +00:00
Nick Mathewson
b85b710cf5
Update copyright statements to reflect the facts that:
...
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
disclaim some rights is sheer cargo-cultism.
svn:r1065
2009-01-27 22:34:36 +00:00
Niels Provos
fdf694933c
sendfile/mmap and memory reference implementation for evbuffers
...
svn:r1057
2009-01-27 06:05:38 +00:00
Niels Provos
b93e505452
second argument to evbuffer_pullup should be ssize_t
...
svn:r1056
2009-01-27 05:33:39 +00:00
Nick Mathewson
81dd04a726
Add a "flags" field to evbuffer callbacks.
...
For now, there is just one: enabled. This lets us avoid lots of
mallocs/frees/tailq-manipulations just to turn a callback on and off.
The revised bufferevent code wants this.
svn:r1047
2009-01-23 18:04:34 +00:00
Nick Mathewson
de7f7a84a3
Remove in_callbacks check: allow full recursion in evbuffer callbacks. If you get yourself in an infinite loop, that's not our fault. Note this in the docs. Also reindent some docs now that my tabs match Niels's.
...
svn:r1046
2009-01-23 18:03:45 +00:00
Nick Mathewson
ec2f4cbc09
Move obsolete evbuffer function into include/event2/buffer_compat.h
...
svn:r1043
2009-01-23 01:35:57 +00:00
Nick Mathewson
c735f2b45a
Code to allow multiple callbacks per evbuffer.
...
svn:r1042
2009-01-23 01:11:13 +00:00
Nick Mathewson
840318196b
Make some evbuffer functions const
...
svn:r1010
2009-01-14 22:17:31 +00:00
Nick Mathewson
99db0e7f72
Add a new evbuffer_write_atmost() functino to write no more than a given number of bytes to an fd.
...
svn:r993
2009-01-12 20:42:19 +00:00
Nick Mathewson
f446f1493a
Small cleanups to buffer.h documentation.
...
svn:r992
2009-01-12 20:42:06 +00:00
Nick Mathewson
6bf1ca780c
r19675@catbus: nickm | 2008-05-11 20:39:39 -0400
...
Stop pretending that u_char and u_short are standard types that win32 is dumb not to have. In fact, u_char can really just be spelled out, and u_short was usually just a bad way of saying ev_uint16_t.
svn:r808
2008-05-12 00:40:04 +00:00
Nick Mathewson
8acb80b4f9
r15551@tombo: nickm | 2008-05-08 14:49:20 -0400
...
Use _get_ convention for new accessor functions. (These are all new ones as of 2.0, I believe).
svn:r799
2008-05-08 22:51:39 +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
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
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
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