Ok thank you! I understand it better now. Bruno.
----- Mail original ----- De: "Azat Khuzhin" <[email protected]> À: [email protected] Envoyé: Lundi 6 Novembre 2017 12:30:05 Objet: Re: [Libevent-users] filter bufferevents and timeout Hi, > But when done properly it works indeed, thank you! Great > - in my input filter callback, is the destination buffer the input buffer of > my bufferevent_filter ? yep, the src is the underlying input, and the dst is the input of the filtered bufferevent > - how is used the buffbufferevent_filter_result returned by the input filter > callback ? Kind of the same as for output filter: - it will call you input callback until you returns BEV_OK (i.e. while you are processing something) and the underlying input has data - if it processed something it resets timeouts, and triggers readcb of filtered bufferevent. (All this for the case if the filtered input does not have watermarks, since in this case it can stop earlier) Azat. *********************************************************************** To unsubscribe, send an e-mail to [email protected] with unsubscribe libevent-users in the body. *********************************************************************** To unsubscribe, send an e-mail to [email protected] with unsubscribe libevent-users in the body.
