]> granicus.if.org Git - libevent/commitdiff
Better explanation for bufferevent_pair
authorNick Mathewson <nickm@torproject.org>
Fri, 10 Apr 2009 20:42:53 +0000 (20:42 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 10 Apr 2009 20:42:53 +0000 (20:42 +0000)
svn:r1153

include/event2/bufferevent.h

index 0da1fb7accfa3dcb39753001ef0041393c6ee302..bbb70ad86d76e9e4b795540107c3fea578cce397 100644 (file)
@@ -405,7 +405,13 @@ bufferevent_filter_new(struct bufferevent *underlying,
                       void (*free_context)(void *),
                       void *ctx);
 
-/** Allocate a pair of linked bufferevents DOCDOC */
+/**
+   Allocate a pair of linked bufferevents.  The bufferevents behave as would
+   two bufferevent_sock instances connected to opposite ends of a
+   socketpair(), except that no internel socketpair is allocated.
+
+   @param base The event base to associate with the socketpair.
+ */
 int
 bufferevent_pair_new(struct event_base *base, enum bufferevent_options options,
     struct bufferevent *pair[2]);