Can someone explain to me exactly how it works?
A packet buffer acts as a storage area. You add stuff to it a little at a time, then when you've assembled the complete packet within the buffer, you send it.
I wrote a small tutorial on it.
www.blizzside.com/feanor/PacketLogs.txt (http://www.blizzside.com/feanor/PacketLogs.txt)
It is kinda ghetto and incomplete, but it explains how to use DM's packet buffer class (VB) and basically how to read the packet that b.net sends you.
http://dmbot.virtualave.net/DynBuffer.zip (http://dmbot.virtualave.net/DynBuffer.zip)
Quote from: DarkMinion on July 06, 2003, 11:03 PM
http://dmbot.virtualave.net/DynBuffer.zip (http://dmbot.virtualave.net/DynBuffer.zip)
BTW, it seems like clear() in that will leak memory after you've added things to the buffer.
Yeah, I fixed that a while back, haven't uploaded, oops!