EVENT2_EXPORT_SYMBOL void bufferevent_settimeout(struct bufferevent *bufev, int timeout_read, int timeout_write)
Set the read and write timeout for a buffered event.
EVENT2_EXPORT_SYMBOL struct bufferevent * bufferevent_new(evutil_socket_t fd, evbuffercb readcb, evbuffercb writecb, everrorcb errorcb, void *cbarg)
Create a new bufferevent for an fd.