htons man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

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  mem‐
       ory).

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)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net