Partager via


ntohs (Windows CE 5.0)

Send Feedback

This function converts a u_short from TCP/IP network byte order to host byte order, which is little-endian on Intel processors.

u_short ntohs(u_short netshort);

Parameters

  • netshort
    [in] 16-bit number in TCP/IP network byte order.

Return Values

This function returns the value in host byte order. If the netshort parameter was already in host byte order, then no operation is performed.

Remarks

This function takes a 16-bit number in TCP/IP network byte order and returns a 16-bit number in host byte order.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winsock2.h.
Link Library: Ws2.lib.

See Also

htonl | htons | ntohl | WSAHtonl | WSAHtons | WSANtohl | WSANtohs

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.