[C++] A bit Confused about Packets
Alright, i'm making an emulator for this MMO named
Flyff (www.flyff.gpotato.com)
I'm a bit confused about implementing packets in my source,
Alright, let's say for example I have this set of packets
Red = Size
Magenta = Command
[5E] [B8] [05] [00] [00] [FD] [00] [00] [00]
I have an idea on what I would do.
Which is create a Class that defines the packets
and every time i was adding packets. pass it through the class.
But, i'm iffy about my theory.
Can someone enlighten me?
Re: [C++] A bit Confused about Packets
I don't understand but for every packet received, identify it by his command. One class = one command ?
Hmm...you'll result having a shitload of objects lol. which is not needed. I'm not sure what you want to do but see http://forum.ragezone.com/f144/c-pac...0/#post4570091
More easy, more efficient.