Sockets: Byte order mixed up Sockets: Byte order mixed up unix unix

Sockets: Byte order mixed up


While I'm not entirely sure WHY the byte order was changed, I do have a fix.

I just implemented a naive version of the receiving end, trying to receive as much data as would fit into the buffer with the size of the MTU.Usually both packets would be read and put together.

Now that I have implemented a primitive "protocol" telling my receiver the size of the packet and thus receiving them separate, they do arrive in order.