From 31d89f274bc28655bca3e6aec19b90080cb09add Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 13 May 2009 20:37:21 +0000 Subject: 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 --- iocp-internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iocp-internal.h') diff --git a/iocp-internal.h b/iocp-internal.h index 1470620d..ac76e848 100644 --- a/iocp-internal.h +++ b/iocp-internal.h @@ -97,6 +97,9 @@ void event_overlapped_init(struct event_overlapped *, iocp_callback cb); */ struct evbuffer *evbuffer_overlapped_new(evutil_socket_t fd); +/** XXXX Document (nickm) */ +evutil_socket_t _evbuffer_overlapped_get_fd(struct evbuffer *buf); + /** Start reading data onto the end of an overlapped evbuffer. An evbuffer can only have one read pending at a time. While the read -- cgit v1.2.1