Nick Mathewson
8997f234f2
Use the native "struct iovec" as our "struct evbuffer_iovec" when available, so we do not need to copy more pointers than necessary.
...
svn:r1299
2009-05-21 20:59:00 +00:00
Nick Mathewson
23243b8a98
Replace reserve/commit with new iovec-based interface. Add a new evbuffer_peek.
...
svn:r1296
2009-05-19 21:39:35 +00:00
Nick Mathewson
31d89f274b
Add a "ctrl" mechanism to bufferevents for property access.
...
OpenSSL uses something like this to implement get/set access for
properties on its BIOs, so that it doesn't need to add a pair of
get/set functions to the vtable struct for every new abstract property
it provides an accessor for.
Doing this lets us make bufferevent_setfd abstract, and implement an
abstract bufferevent_getfd.
svn:r1284
2009-05-13 20:37:21 +00:00
Nick Mathewson
fe47003d06
Make unit tests for bufferevent_async compile and _almost_ work.
...
Either I need to make the callbacks get deferred in a base with no events (doable), or I need to make it okay to call launch_read from inside the callback for read (tricky).
svn:r1277
2009-05-05 16:52:37 +00:00
Nick Mathewson
af8b82224b
Add missing include to buffer_iocp.c
...
svn:r1275
2009-05-05 15:30:58 +00:00
Nick Mathewson
5a3eddf03f
Use fewer _compat.h headers in our own code.
...
svn:r1268
2009-05-02 16:24:05 +00:00
Nick Mathewson
e865eb938c
More msvc build tweaks.
...
svn:r1262
2009-05-01 00:54:14 +00:00
Nick Mathewson
efc24f7cf1
Get launch_read and launch_write to (apparently) work.
...
svn:r1258
2009-04-30 20:47:38 +00:00
Nick Mathewson
23121bfb41
Fix a reversed check in upcast_evbuffer
...
svn:r1257
2009-04-30 19:56:23 +00:00
Nick Mathewson
838d0a81c3
Document many internal functions and pieces of code.
...
svn:r1181
2009-04-17 06:55:08 +00:00
Nick Mathewson
433e2339ca
Remove long copy-and-paste section full of windows api notes.
...
svn:r1180
2009-04-17 06:54:28 +00:00
Nick Mathewson
93d4f884aa
Make buffer iocp stuff compile happily
...
svn:r1174
2009-04-14 20:11:10 +00:00
Nick Mathewson
ca737ff3b5
Add draft (nonworking) versions of iocp code to hack on more.
...
svn:r1172
2009-04-13 18:29:31 +00:00