Linux repositories inspector
BSD
April 15, 1993
Aliases: htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htonl(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), htons(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohl(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3), ntohs(3)

manpages-pt-dev

Portuguese Versions of the Manual Pages (dev sections)

manpages-dev

Manual pages about using GNU/Linux for development

z88dk

Z80 processor assembler and SmallC+ cross compiler

man-pages

Linux kernel and C library user-space interface documentation

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

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

Paulo César Mendes <> (tradução) xxxxxxxxxxxxxxxxxxxxxxxxx <> (revisão)
⇧ Top