struct bufferevent *bufev;
#ifdef WIN32
- if (base && base->iocp)
+ if (base && event_base_get_iocp(base))
return bufferevent_async_new(base, fd, options);
#endif
}
#ifdef WIN32
- if ((cfg->flags & EVENT_BASE_FLAG_STARTUP_IOCP) != 0)
+ if (cfg && (cfg->flags & EVENT_BASE_FLAG_STARTUP_IOCP))
event_base_start_iocp(base);
#endif
evbuffer_free(wbuf);
}
-/*FIXME get this from a header once it's in one. */
-struct bufferevent *
-bufferevent_async_new(struct event_base *base,
- evutil_socket_t fd, enum bufferevent_options options);
-
static void
test_iocp_bufferevent_async(void *ptr)
{