Extended Byte-Order Conversion Routines
Winsock 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 the socket handle that has a WSAPROTOCOL_INFO structure associated with it. The **NetworkByteOrder****member of the WSAPROTOCOL_INFO structure specifies the desired network byte order. This is currently either big-endian or little-endian.
See Also
Winsock Overlapped I/O and Event Objects
© 1992-2003 Microsoft Corporation. All rights reserved.