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

[Libevent-users] Help understanding the evbuffer and its chains



Hey Everyone,

i did use Libevent in my master thesis to programm a multithreaded
websocket server and while i know *how to use* Libevent now, i dont really
know how Libevent works internally. Everything i did know was that it
relies on multiplexing-IO-mechanisms like epoll.

So in order to be able to explain how libevent works internally i decided
to look at the source and was able to understand a lot. But now i am
having problems figuring out why the evbuffer is as it actually is.

Why is the evbuffer represented as some type of linked list with
chain-Nodes containing the actually buffers? What was the idea behind
using a linked list of buffers instead just using on single Buffer?

And what is the purpose of the misalign-space in the Buffers?

Hope someone can kindly explain it.

Thanks in advance,

Fc

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