|
|||||||
|
|
BYTEORDERSection: Linux Programmer's Manual (3)Updated: April 15, 1993 Index Return to Main Contents ̾Á°htonl, htons, ntohl, ntohs - ¥Û¥¹¥È¥Ð¥¤¥È¥ª¡¼¥À¡¼¤È¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Î´Ö¤ÇÃͤòÊÑ´¹¤¹¤ë½ñ¼°#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); ÀâÌÀhtonl() ´Ø¿ô¤Ï long integer hostlong ¤ò¥Û¥¹¥È¥Ð¥¤¥È¥ª¡¼¥À¡¼ ¤«¤é¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼¥À¡¼¤ËÊÑ´¹¤¹¤ë¡£htons() ´Ø¿ô¤Ï short integer hostshort ¤ò¥Û¥¹¥È¥Ð¥¤¥È¥ª¡¼¥À¡¼ ¤«¤é¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼¥À¡¼¤ËÊÑ´¹¤¹¤ë¡£ ntohl() ´Ø¿ô¤Ï long integer netlong ¤ò¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼ ¥À¡¼¤«¤é¥Û¥¹¥È¥Ð¥¤¥È¥ª¡¼¥À¡¼¤ËÊÑ´¹¤¹¤ë¡£ ntohs() ´Ø¿ô¤Ï short integer netshort ¤ò¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼ ¥À¡¼¤«¤é¥Û¥¹¥È¥Ð¥¤¥È¥ª¡¼¥À¡¼¤ËÊÑ´¹¤¹¤ë¡£ i80x86 ¤Î¥Û¥¹¥È¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Ç¤ÏºÇ²¼°Ì¤Î¥Ð¥¤¥È¤¬Àè¤ËÇÛÃÖ¤µ¤ì¤ë¤¬¡¢ ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ÇÍѤ¤¤é¤ì¤ë¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Ç¤ÏºÇ¾å°Ì¤Î¥Ð¥¤¥È ¤¬Àè¤ËÇÛÃÖ¤µ¤ì¤ë¡£ ½àµòBSD 4.3´ØÏ¢¹àÌÜgethostbyname(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. |