• Welcome to Valhalla Legends Archive.
 

[C++] Packet buffer classes for battle.net

Started by Okee, April 25, 2005, 07:36 PM

Previous topic - Next topic

Okee

Are there any public packet buffer classes out there that I can use? I'm looking for one that handles the sending of the packet as well as constructing/reading packets, similar to DM's old one for visual basic. DM's new DynBuffer doesn't appear to handle the send packet function in the class.

Thanks in advance.

Edit: What's this CPacket class I see several people using in their C++ bots?

UserLoser.

Quote from: Okee on April 25, 2005, 07:36 PM
Are there any public packet buffer classes out there that I can use? I'm looking for one that handles the sending of the packet as well as constructing/reading packets, similar to DM's old one for visual basic. DM's new DynBuffer doesn't appear to handle the send packet function in the class.

Thanks in advance.

Edit: What's this CPacket class I see several people using in their C++ bots?

"DynBuffer" is dynamic buffer. It's not used only for outgoing/incoming messages

Okee

Quote from: UserLoser on April 25, 2005, 09:08 PM
Quote from: Okee on April 25, 2005, 07:36 PM
Are there any public packet buffer classes out there that I can use? I'm looking for one that handles the sending of the packet as well as constructing/reading packets, similar to DM's old one for visual basic. DM's new DynBuffer doesn't appear to handle the send packet function in the class.

Thanks in advance.

Edit: What's this CPacket class I see several people using in their C++ bots?

"DynBuffer" is dynamic buffer. It's not used only for outgoing/incoming messages

Oh, alright. What's this CPacket I see several posts on this forum using? Know anything about it? Maybe, where I can find it?

MyndFyre

Quote from: Okee on April 25, 2005, 07:36 PM
DM's new DynBuffer doesn't appear to handle the send packet function in the class.

Perhaps the buffer class shouldn't handle sending itself?  Sounds like bad OO design to me.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Okee

Nobody knows anything about CPacket?
Here's one of the posts talking about it... here.

OnlyMeat, do you know?

MyndFyre

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Yegg


OnlyMeat

#7
Quote from: Okee on April 27, 2005, 06:12 PM
Nobody knows anything about CPacket?
Here's one of the posts talking about it... here.

OnlyMeat, do you know?

It's just a base class to encapsulate basic packet buffer operations. The '<<' and '>>' shift operators are overloaded to provide c++ stream type functionality for a variety of datatypes.