kc3-lang/libevent/bufferevent_pair.c

Branch :


Log

Author Commit Date CI Message
915193e7 2009-04-13 03:17:19 Locking support for bufferevents. svn:r1170
1becc4c4 2009-04-13 03:08:11 Refactor new elements of bufferevent into bufferevent_private structure This way we don't expose more of a bufferevent than we need to. One motivation is to make it easier to automatically get deferred callbacks with a bufferevent without exposing the deferred_cb structure. svn:r1169
8dec59bb 2009-04-13 03:07:17 Use freeze operations to prevent shenanegans on bufferevent pair evbuffers. svn:r1167
0b47b125 2009-04-12 22:02:54 Add a new EVUTIL_UPCAST macro so that I do not need to keep figuring out the right offsetof magic over and over. svn:r1160
23085c92 2009-04-10 15:01:31 Add a linked-pair abstraction to bufferevents. The new bufferevent_pair abstraction works like a set of buferevent_sockets connected by a socketpair, except that it doesn't require a socketpair, and therefore doesn't need to get the kernel involved. It's also a good way to make sure that deferred callbacks work. It's a good use case for deferred callbacks: before I implemented them, the recursive relationship between the evbuffer callback and the read callback would make the unit tests overflow the stack. svn:r1152