[Libevent-users] Documentation of object ownership/lifecycle

Florian Lohoff flo at rfc822.org
Sat Feb 9 07:33:32 EST 2008


Hi,

i was once again reading the manpage and the doxygen documentation on the
webpages but i was really confused on whether e.g. "bufferevent_write_buffer"
takes over ownership of the passed evbuffer. I mean evbuffer_new is the
source of the evbuffers but who is the consumer or sink? 

Its hard to understand from the documentation what the lifecycle of an
evbuffer is within the callbacks, evbuffer and bufferevent API.

I mean - i find my way by gdb and valgrind - either crash or memleak
shows the misusage of the API but i guess fixing the documentation
would be helpful to a lot of interested partys.

But anyway - thanks for libevent - great tool i dont want to miss.

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-171-2280134
	Those who would give up a little freedom to get a little 
          security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://monkeymail.org/archives/libevent-users/attachments/20080209/84e6ce0a/attachment.bin


More information about the Libevent-users mailing list