Hi,
I am using WinSock library for sending data over network, and I have a problem.
I know how to send data in one struct and receive it on the other side, because there is constant size of structure. But what if I have more structures, each one with different size?
Now I have one struct that contains locations of players and other with in-game messages. When I am about to receive struct, I don't know which one is being sent.
Is there a "trick" how to do that?
Thanks for help.