Partager via


Byte Ordering Assumptions

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

A service provider should treat all sockaddr calls exclusive of the address family parameter as if they are in the network byte order, and the address family parameter as in the local machine's byte order. It is the Winsock application's responsibility to make sure that addresses contained in sockaddr structures are properly arranged. The Winsock API provides a number of conversion routines to simplify this task. Currently these routines understand conversion between the local host's natural byte order and either big-endian or little-endian network byte ordering. The Winsock architecture can support other byte ordering schemes in the future.

See Also

Concepts

Winsock Service Provider Interface (SPI)