Export (0) Print
Expand All

ntohs

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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
);

netshort

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

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

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

Headerwinsock2.h
LibraryWs2.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft