summaryrefslogtreecommitdiff
path: root/iocp-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-11-04 05:19:26 +0000
committerNick Mathewson <nickm@torproject.org>2009-11-04 05:19:26 +0000
commit86db1c851be804b13aadebcc0b1a21a4493192dd (patch)
treebd6a597a4448dde5a1c2c5f953cfcb7dd0fd0a5e /iocp-internal.h
parent6ca32df11ac92a4c3ab417d656253353e28a7dc3 (diff)
downloadlibevent-86db1c851be804b13aadebcc0b1a21a4493192dd.tar.gz
Commit ConnectEx code to get connect working with async bufferevents.
This is code by Chris Davis, with changes to get the unit tests failing less aggressively. The unit tests for this code do not completely pass yet; Chris is looking into that. If they aren't passing by the next release, I'll turn off this code. svn:r1499
Diffstat (limited to 'iocp-internal.h')
-rw-r--r--iocp-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/iocp-internal.h b/iocp-internal.h
index 18b89d25..c0500ace 100644
--- a/iocp-internal.h
+++ b/iocp-internal.h
@@ -117,6 +117,8 @@ struct evbuffer *evbuffer_overlapped_new(evutil_socket_t fd);
/** XXXX Document (nickm) */
evutil_socket_t _evbuffer_overlapped_get_fd(struct evbuffer *buf);
+void _evbuffer_overlapped_set_fd(struct evbuffer *buf, evutil_socket_t fd);
+
/** Start reading data onto the end of an overlapped evbuffer.
An evbuffer can only have one read pending at a time. While the read
@@ -176,6 +178,10 @@ int event_base_start_iocp(struct event_base *base);
struct bufferevent *bufferevent_async_new(struct event_base *base,
evutil_socket_t fd, int options);
+/* FIXME document. */
+int bufferevent_async_can_connect(struct bufferevent *bev);
+int bufferevent_async_connect(struct bufferevent *bev, evutil_socket_t fd,
+ const struct sockaddr *sa, int socklen);
#ifdef __cplusplus
}