Provided by: manpages-pt-dev_20040726-5_all bug

NOME

       htonl, htons, ntohl, ntohs - muda a ordem dos bytes para a do host ou a da rede.

SINOPSE

       #include <netinet/in.h>

       unsigned long int htonl(unsigned long int 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);

DESCRIÇÃO

       A função htonl() muda a ordem dos bytes do inteiro long hostlong de host para rede.

       A função htons() muda a ordem dos bytes do inteiro short hostshort de host para rede.

       A função ntohl() muda a ordem dos bytes do inteiro long netlong de rede para host.

       A função ntohs() muda a ordem dos bytes do inteiro short netshort de rede para host.

       A  ordem  de  bytes  na  arquitetura  i80x86  começa  com  o byte menos significativo, e, na rede (ex. na
       internet), o byte mais significativo vem primeiro.

DE ACORDO COM

       BSD 4.3

VER TAMBÉM

       gethostbyname(3), getservent(3)

TRADUZIDO POR LDP-BR em 21/08/2000.

       Paulo César Mendes <drpc@ism.com.br> (tradução) xxxxxxxxxxxxxxxxxxxxxxxxx <xxx@xxxxxx.xxx.xx> (revisão)

BSD                                              April 15, 1993                                     BYTEORDER(3)