次の方法で共有


ntohl (Compact 2013)

3/26/2014

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

Syntax

u_long ntohl(
  u_long netlong
);

Parameters

  • netlong
    [in] 32-bit number in TCP/IP network byte order.

Return Value

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

Remarks

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

Requirements

Header

winsock2.h

Library

Ws2.lib

See Also

Reference

Socket Functions
htonl
htons
ntohs
WSAHtonl
WSAHtons
WSANtohl
WSANtohs