❔ labelling data types in packet headers
So im sending a packet over a network stream, wanting to add the packet type to the header, but how do i do this. Do i add it as a string then use a switch statement on the server side to determine what to cast it to? This seems inefficient.
2 Replies