Add simple buffer management code.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 14 May 2011 17:15:04 +0000 (19:15 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 14 May 2011 17:15:04 +0000 (19:15 +0200)
Libevent 2.0's buffer code is not completely backward compatible with 1.4's.
In order to not (mis)use it anymore, we implement it ourselves. The buffers
are automatically expanding when necessary. When consuming data from the
buffer, no memmove()s are performed. Only when adding to the buffer would
write past the end do we shift everything back to the start.


No differences found