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 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
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?
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.
Nobody knows anything about CPacket?
Here's one of the posts talking about it... here. (http://forum.valhallalegends.com/phpbbs/index.php?topic=11381.0)
OnlyMeat, do you know?
Quote from: Okee on April 27, 2005, 06:12 PM
Nobody knows anything about CPacket?
Google knows. (http://wiki.shareaza.com/static/Developers.Code.CPacket)
http://www.google.com/search?hl=en&q=CPacket&btnG=Google+Search
Google knows all.
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. (http://forum.valhallalegends.com/phpbbs/index.php?topic=11381.0)
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.