osf1 man page for htonl

Query: htonl

OS: osf1

Section: 9r

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

htonl(9r)																 htonl(9r)

NAME
htonl, htons - General: Convert word and longword values from host-to-network byte order
SYNOPSIS
#include <sys/param.h> unsigned int htonl( unsigned int longword ); unsigned short htons( unsigned short word );
ARGUMENTS
Specifies a 32-bit value to be conditionally byte swapped. Specifies a 16-bit value to be conditionally byte swapped.
DESCRIPTION
The htonl routine converts the specified longword value from host-to-network byte order. The htons routine converts the specified word value from host-to-network byte order. The TCP/IP protocols specify the canonical network byte order, which is big endian (meaning that the most significant byte is leftmost in memory).
RETURN VALUES
Upon successful completion, the htonl routine returns the converted longword value in network byte order. Similarly, upon successful com- pletion, the htons routine converts the specified word value in network byte order.
SEE ALSO
Routines: ntohl(9r) htonl(9r)
Related Man Pages
byteorder(3) - minix
byteorder(3) - php
htons(3) - xfree86
ntohl(3) - xfree86
ntohl(3) - minix
Similar Topics in the Unix Linux Community
Not able to compile C program on z/OS (USS)
Help needed in my client/server app - Delay in displaying messages from clients.
Listening on localhost - cannot connect to host using port 3010
Getting error address already in use in socket programming
Reported Post by Aia