ntohs function winsock

int ntohs(
  1. int netshort
)

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

Implementation

int ntohs(int netshort) => _ntohs(netshort);