Pagkat-on sa Linux Command-ntohs

Ngalan

htonl, htons, ntohl, ntohs - i-convert ang mga bili tali sa host ug network byte order

Sinopsis

Ipakita ang uint32_t htonl (uint32_t hostlong ); uint16_t htons (uint16_t hostshort ); uint32_t ntohl (uint32_t netlong ); uint16_t ntohs (uint16_t netshort );

Deskripsiyon

Ang htonl () function nag-convert sa unsigned integer hostlong gikan sa host byte order ngadto sa network byte order.

Ang mga hula () function nag-usab sa unsigned short integer hostshort gikan sa host byte order ngadto sa network byte order.

Ang function sa ntohl () mag-convert sa unsigned integer netlong gikan sa order sa byte sa network aron ibutang ang order sa byte.

Ang function ntohs () mag-convert sa unsigned short netshort nga integer gikan sa order sa byte sa network aron ibutang ang order sa byte.

Sa i80x86 ang host byte nga order mao ang labing Piho nga Piho nga Byte una, samtang ang order sa byte sa network, nga gigamit sa Internet, mao ang una nga Labing Importante nga Byte.

Pagsunod sa

BSD 4.3