I have a MMORPG emulator, this means it will be handling packets quite a bit.
Currently, I am using pointers for this, as I think when used correctly, they can speed up my server, however I’ve got two friends, one is telling me to use pointers, he thinks I can use them without running into trouble, my other friends says I should not use pointers, as they could make my server crash, they are unsafe, and they aren’t easy to manage.
I use structs for my packet structures, so e.g. I could get its type using the following line:
Ptr->Type;
What do you think?
In a way, they’re both right. If you handle them propertly, pointers are much faster. On the other hand, if you don’t handle them correctly, they can cause all kinds of problems.
If you think you’ve got a handle on it (and your friend(s) who is (are) knowledgable about pointers are willing to help you) go with pointers.