Write Portable Code: An Introduction to Developing Software for Multiple Platforms

Category: Programming
Author: Brian Hook
3.8

Comments

by anonymous   2018-04-02
There's a lot wrong here. Trying to overlay a structure on a network packet is just a bad idea. Not only do you have endianess issues, but also alignment and padding issues. You should really check out the book [Write Portable Code](https://www.amazon.com/Write-Portable-Code-Introduction-Developing/dp/1593270569). It'll highlight these sorts of problems.