Partager via


htonl (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

u_long htonl(
  u_long hostlong
);

Parameters

  • hostlong
    [in] 32-bit number in host byte order.

Return Value

This function returns the value in TCP/IP network byte order.

Remarks

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

Requirements

Header winsock2.h
Library Ws2.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

htons
ntohl
ntohs
WSAHtonl
WSAHtons
WSANtohl
WSANtohs

Concepts

Socket Functions