[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Deprecated functions and their replacements



On Wed, Mar 27, 2013 at 6:45 AM, Grega Kres <gregakres@xxxxxxxxx> wrote:
> Hello,
>
> just a few quick questions about some deprecated functions. According
> to this list: http://www.wangafu.net/~nickm/libevent-2.1/doxygen/html/deprecated.html
> event_init is deprecated and event_base_new should be used. That's OK.
>
> Another one is evhttp_connection_new which is on the list as well, as
> you can't specify an event base with it. But what is the replacement
> for that one? I could use evhttp_connection_set_base, but that one is
> marked as deprecated as well, albeit with an interesting "comment"
> attached.
>
> So is there a way around evhttp_connection_new and
> evhttp_connection_set_base, or should I keep using them for now?

evhttp_connection_base_new or evhttp_connection_baes_bufferevent_new
would appear  to be the ones to use.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.