Backport by Arno Bakker; original implementation in
8d3a8500f4
return (NULL);
}
+struct bufferevent *
+evhttp_connection_get_bufferevent(struct evhttp_connection *evcon)
+{
+ return evcon->bufev;
+}
+
void
evhttp_connection_set_base(struct evhttp_connection *evcon,
struct event_base *base)
struct event_base *base, struct evdns_base *dnsbase,
const char *address, unsigned short port);
+/**
+ * Return the bufferevent that an evhttp_connection is using.
+ */
+struct bufferevent *evhttp_connection_get_bufferevent(
+ struct evhttp_connection *evcon);
+
/** Takes ownership of the request object
*
* Can be used in a request callback to keep onto the request until