Hi, thank you Laurent and others for the tutorial on overriding the << >> operators to be able to send classes.
Before I jump into this, I wondered how this would work on the other end. That is, the receiving program.
The receiving server would also be made myself, and so I can include the .cpp and .h of the class I will be sending over. But I just wanted to check this is necessary. I.e the class has to be defined on the other end / the other exe.
Essentially I will be sending character data for a handful of characters with their statistics.
I know how to override the << >> but just wanted a small bit of help with how I get it at the receiving end. a line or two of code,
i.e the tutorial states
Packet >> Bob;
How then do I make this an object on the receiving side etc. like class instance = packet >> bob (to give a bad psuedo code example).
You can probably see I am quite new to this, but enjoying it. Any comments on what I'm asking, or what you think I'm trying to achieve will be helpful.