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

Re: [Libevent-users] Counting the number of transferred bytes



On Mon, Jul 15, 2019 at 11:59 PM Steffen Christgau <mail@xxxxxxx> wrote:
> I stumbled across filters but I'm not sure if that's the right way to
> go. Something like a "null filter" that passes data just from source to
> destination without modifications could be used for counting. However,
> for my use-case such a filter must be applied after encryption by TLS.

Hi!

Indeed you can use bufferevent filter, take a look at
bufferevent_openssl_filter_new()

You can start with a simple POC, and share it here if you will need help.

Regards,
Azat.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.