• Welcome to Valhalla Legends Archive.
 

Creating a Packet Buffer

Started by Lenny, July 03, 2003, 12:26 AM

Previous topic - Next topic

Lenny

Can someone explain to me exactly how it works?
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Zakath

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.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Dark-Feanor

#2
I wrote a small tutorial on it.
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.
- Feanor[xL]
clan exile
Firebot
iago: "caps lock is like cruise control for cool"

DarkMinion

#3

Skywing

Quote from: DarkMinion on July 06, 2003, 11:03 PM
http://dmbot.virtualave.net/DynBuffer.zip
BTW, it seems like clear() in that will leak memory after you've added things to the buffer.

DarkMinion

Yeah, I fixed that a while back, haven't uploaded, oops!