Query: htons
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
htonl(9r) htonl(9r)NAMEhtonl, htons - General: Convert word and longword values from host-to-network byte orderSYNOPSIS#include <sys/param.h> unsigned int htonl( unsigned int longword ); unsigned short htons( unsigned short word );ARGUMENTSSpecifies a 32-bit value to be conditionally byte swapped. Specifies a 16-bit value to be conditionally byte swapped.DESCRIPTIONThe 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 VALUESUpon 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 ALSORoutines: ntohl(9r) htonl(9r)
Related Man Pages |
---|
htons(3) - minix |
byteorder(3) - plan9 |
htonl(3) - php |
htonl(3) - minix |
ntohs(3) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
htons and ntohs |
How to use htons() function? |