3 ms·
The waste is every little-endian machine (almost all machines) converting every packet to big-endian for 'the wire', then converting back again when received. I
by JoeAltmaier 12y ago
The waste is every little-endian machine (almost all machines) converting every packet to big-endian for 'the wire', then converting back again when received. Its all a pointless self-flagellation.
- smorrow 12y agoAny sensible code is going to have to do that stuff whether the machine's endianness matches IP's or not, though. It happens on BE boxes too. It's either that or write completely different code for different CPUs.
- JoeAltmaier 12y agoThe OPs point was, there are essentially no more BE boxes.
- limeyx 12y agoNot for networking...ntohl/htonl and friends are no-ops (macros) on BE machines ... zero overhead