|
|||||||
|
|
BYTEORDERSection: Manual del Programador de Linux (3)Updated: 15 Abril 1993 Index Return to Main Contents NOMBREhtonl, htons, ntohl, ntohs - convierten valores cuyos bytes se encuentran en orden de host a valores cuyos bytes se encuentran en orden de red y viceversaSINOPSIS#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); DESCRIPCIÓNLa función htonl() convierte el entero largo hostlong desde el orden de bytes del host al de la red.La función htons() convierte el entero corto hostshort desde el orden de bytes del host al de la red. La función ntohl() convierte el entero largo netlong desde el orden de bytes de la red al del host. La función ntohs() convierte el entero corto netshort desde el orden de bytes de la red al del host. En los i80x86 en el orden de bytes del host está primero el byte menos significativo (LSB), mientras que el orden de bytes de la red, tal como se usa en Internet, tiene primero el byte más significativo (MSB). CONFORME ABSD 4.3VÉASE TAMBIÉNgethostbyname(3), getservent(3)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |