Were you using GCC's __attribute__((__packed__))?
Anyway, the standard way (to handle protocols) is to parse the thing not making any assumption of the struct layout.
Anyway, the standard way (to handle protocols) is to parse the thing not making any assumption of the struct layout.
If I am understanding what you are saying, we really couldn't do that, as the server sent and expected to receive binary blobs of data; the only way to know what was what was to have a map of where the data elements were.