Man page - ntohl(3)

Packages contains this manual

Available languages:

en fr pt_BR es pl ko cs ja ru ro de

Manual

BYTEORDER

NOME
BIBLIOTECA
SINOPSE
DESCRIÇÃO
ATRIBUTOS
PADRÕES
HISTÓRICO
VEJA TAMBÉM
TRADUÇÃO

NOME

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

BIBLIOTECA

Biblioteca C PadrĂŁo ( libc , -lc )

SINOPSE

#include <arpa/inet.h>

uint32_t htonl(uint32_t hostlong );
uint16_t htons(uint16_t
hostshort );

uint32_t ntohl(uint32_t netlong );
uint16_t ntohs(uint16_t
netshort );

DESCRIÇÃO

The htonl () function converts the unsigned integer hostlong from host byte order to network byte order.

The htons () function converts the unsigned short integer hostshort from host byte order to network byte order.

The ntohl () function converts the unsigned integer netlong from network byte order to host byte order.

The ntohs () function converts the unsigned short integer netshort from network byte order to host byte order.

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

ATRIBUTOS

Para uma explicação dos termos usados nesta seção, consulte attributes (7).

Image grohtml-3938288-1.png

PADRÕES

POSIX.1-2008.

HISTÓRICO

POSIX.1-2001.

VEJA TAMBÉM

bswap (3), endian (3), gethostbyname (3), getservent (3)

TRADUÇÃO

A tradução para portuguĂȘs brasileiro desta pĂĄgina man foi criada por Paulo CĂ©sar Mendes <drpc@ism.com.br> e AndrĂ© Luiz Fassone <lonely_wolf@ig.com.br>

Esta tradução Ă© uma documentação livre; leia a Licença PĂșblica Geral GNU VersĂŁo 3 ou posterior para as condiçÔes de direitos autorais. Nenhuma responsabilidade Ă© aceita.

Se vocĂȘ encontrar algum erro na tradução desta pĂĄgina de manual, envie um e-mail para a lista de discussĂŁo de tradutores .