IntSwap
Reverses the 2 bytes of a short integer or short unsigned
#include <nwstring.h>
WORD IntSwap (
WORD unswappedInteger);
Returns the byte-swapped integer.
An application can call IntSwap to reverse the high-low order of an integer being sent or received. The 80x86 family of processors store integers in low-high order. Since some of the network functions require integers to be in high-low order, integers must be converted before they are sent or received.