Query: ntohl
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ntohl(9r) ntohl(9r)NAMEntohl, ntohs - General: Convert longword and word values from network-to-host byte orderSYNOPSIS#include <sys/param.h> unsigned int ntohl( unsigned int longword ); unsigned short ntohs( unsigned short word );ARGUMENTSSpecifies a 32-bit value to be conditionally byte swapped. Specifies a 16-bit value to be conditionally byte swapped.DESCRIPTIONThe ntohl routine converts the specified longword value from network-to-host byte order. The ntohs routine converts the specified word value from network-to-host 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 ntohl routine returns the converted longword value in host byte order. Similarly, upon successful comple- tion, the ntohs routine returns the converted word value in host byte order.SEE ALSORoutines: htonl(9r) ntohl(9r)
Related Man Pages |
---|
htons(3) - minix |
byteorder(3) - x11r4 |
htonl(3) - php |
htons(3) - xfree86 |
ntohs(3) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
ntohl |