I have my packets set up so that the first thing I send in them is a header. My headers are stored in an enum, like so:
enum networkHeaders {PlayerMove, ClientDisconnect, Test};
I can send the packet just fine, like so:
outgoingPacket << header
But I cannot receive the packet, like so:
incomingPacket >> header
Also this is my header variable:
networkHeaders header;
I would appreciate some help here, I tried searching the forums. Enums and networking are new concepts to me but I'm eager to learn. Thanks in advance.