Valhalla Legends Archive

Programming => Battle.net Bot Development => Battle.net Bot Development References => Topic started by: Lenny on July 03, 2003, 12:26 AM

Title: Creating a Packet Buffer
Post by: Lenny on July 03, 2003, 12:26 AM
Can someone explain to me exactly how it works?
Title: Re:Packet Buffers
Post by: Zakath on July 06, 2003, 09:53 PM
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.
Title: Re:Packet Buffers
Post by: Dark-Feanor on July 06, 2003, 10:28 PM
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.
Title: Re:Packet Buffers
Post by: DarkMinion on July 06, 2003, 11:03 PM
http://dmbot.virtualave.net/DynBuffer.zip (http://dmbot.virtualave.net/DynBuffer.zip)
Title: Re:Packet Buffers
Post by: Skywing on July 08, 2003, 12:13 PM
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.
Title: Re:Packet Buffers
Post by: DarkMinion on July 08, 2003, 02:02 PM
Yeah, I fixed that a while back, haven't uploaded, oops!