Extended Byte Order Conversion Routines

Windows Sockets 2 does not assume that the network byte order for all protocols is the same. A set of conversion routines is supplied for converting 16-bit and 32-bit quantities to and from network byte order. These routines take as an input parameter an integer whose value is generally a manifest constant that specifies what the desired network byte order is (currently "big-endian" or "little-endian"). Also, the WSAPROTOCOL_INFO structure for each protocol includes a field for use as the input parameter for the byte-ordering functions.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
Unix Manual Pages
Delphi Examples