Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
htonl(3)
Edit
PageHistory
Diff
Info
LikePages
BYTEORDER !!!BYTEORDER NAME SYNOPSIS DESCRIPTION CONFORMING TO SEE ALSO ---- !!NAME htonl, htons, ntohl, ntohs - convert values between host and network byte order !!SYNOPSIS __#include __ ''hostlong''__); unsigned short int htons(unsigned short int__ ''hostshort''__); unsigned long int ntohl(unsigned long int__ ''netlong''__); unsigned short int ntohs(unsigned short int__ ''netshort''__); __ !!DESCRIPTION The __htonl()__ function converts the long integer ''hostlong'' from host byte order to network byte order. The __htons()__ function converts the short integer ''hostshort'' from host byte order to network byte order. The __ntohl()__ function converts the long integer ''netlong'' from network byte order to host byte order. The __ntohs()__ function converts the short integer ''netshort'' from network byte order to host byte order. On the i80x86 the host byte order is Least Significant Byte first, whereas the network byte order, as used on the Internet, is Most Significant Byte first. !!CONFORMING TO BSD 4.3 !!SEE ALSO gethostbyname(3), getservent(3) ----
3 pages link to
htonl(3)
:
Man3h
NetworkByteOrder
NetworkProgrammingOld
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.