Hi, all I want to shape the read/write traffic, I check the data-structure I find there are 4 members in the struct bufferevent which maybe do that function. However I don't know how to do it in detail steps.
Anyone can share some tips for that?
struct bufferevent { ......
/** An input buffer. Only the bufferevent is allowed to add data to this buffer, though the user is allowed to drain it. */ struct evbuffer *input;
/** An input buffer. Only the bufferevent is allowed to drain data from this buffer, though the user is allowed to add it. */ struct evbuffer *output;