Valhalla Legends Forums Archive | Battle.net Bot Development | [C++] Packet buffer classes for battle.net

AuthorMessageTime
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?
April 26, 2005, 12:36 AM
UserLoser.
[quote author=Okee link=topic=11393.msg109921#msg109921 date=1114475808]
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?
[/quote]

"DynBuffer" is dynamic buffer. It's not used only for outgoing/incoming messages
April 26, 2005, 2:08 AM
Okee
[quote author=UserLoser link=topic=11393.msg109931#msg109931 date=1114481300]
[quote author=Okee link=topic=11393.msg109921#msg109921 date=1114475808]
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?
[/quote]

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

Oh, alright. What's this CPacket I see several posts on this forum using? Know anything about it? Maybe, where I can find it?
April 26, 2005, 2:36 PM
Myndfyr
[quote author=Okee link=topic=11393.msg109921#msg109921 date=1114475808]
DM's new DynBuffer doesn't appear to handle the send packet function in the class.
[/quote]

Perhaps the buffer class shouldn't handle sending itself?  Sounds like bad OO design to me.
April 26, 2005, 3:20 PM
Okee
Nobody knows anything about CPacket?
Here's one of the posts talking about it... here.

OnlyMeat, do you know?
April 27, 2005, 11:12 PM
Myndfyr
[quote author=Okee link=topic=11393.msg110189#msg110189 date=1114643574]
Nobody knows anything about CPacket?
[/quote]

Google knows.

http://www.google.com/search?hl=en&q=CPacket&btnG=Google+Search
April 27, 2005, 11:25 PM
Yegg
Google knows all.
April 27, 2005, 11:36 PM
OnlyMeat
[quote author=Okee link=topic=11393.msg110189#msg110189 date=1114643574]
Nobody knows anything about CPacket?
Here's one of the posts talking about it... here.

OnlyMeat, do you know?
[/quote]

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.
April 28, 2005, 12:50 AM

Search