JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... _t hostlong ); uint16_t htons(uint16_t hostshort ); uint32_t ntohl(uint32_t netlong ); uint16_t ntohs(uint16_t netshort ); 説明 htonl () 関数は unsigned ... integer hostlong を ホストバイトオーダーからネットワークバイトオーダーに変換する。 htons () 関数は unsigned short integer hostshort を ホストバイトオーダーからネットワークバイトオーダーに変換する。 ntohl () 関数 ... が先に配置される。 属性 この節で使用されている用語の説明は attributes (7) を参照のこと。 Interface Attribute Value htonl (), htons (), ntohl (), ntohs () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008. いくつかのシステムでは、 < arpa/inet.h > の代 ... ... _t hostlong ); uint16_t htons(uint16_t hostshort ); uint32_t ntohl(uint32_t netlong ); uint16_t ntohs(uint16_t netshort ); 説明 htonl () 関数は unsigned ... integer hostlong を ホストバイトオーダーからネットワークバイトオーダーに変換する。 htons () 関数は unsigned short integer hostshort を ホストバイトオーダーからネットワークバイトオーダーに変換する。 ntohl () 関数 ... が先に配置される。 属性 この節で使用されている用語の説明は attributes (7) を参照のこと。 Interface Attribute Value htonl (), htons (), ntohl (), ntohs () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008. いくつかのシステムでは、 < arpa/inet.h > の代 ... ... _t hostlong ); uint16_t htons(uint16_t hostshort ); uint32_t ntohl(uint32_t netlong ); uint16_t ntohs(uint16_t netshort ); 説明 htonl () 関数は unsigned ... integer hostlong を ホストバイトオーダーからネットワークバイトオーダーに変換する。 htons () 関数は unsigned short integer hostshort を ホストバイトオーダーからネットワークバイトオーダーに変換する。 ntohl () 関数 ... が先に配置される。 属性 この節で使用されている用語の説明は attributes (7) を参照のこと。 Interface Attribute Value htonl (), htons (), ntohl (), ntohs () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008. いくつかのシステムでは、 < arpa/inet.h > の代 ... ... _t hostlong ); uint16_t htons(uint16_t hostshort ); uint32_t ntohl(uint32_t netlong ); uint16_t ntohs(uint16_t netshort ); 説明 htonl () 関数は unsigned ... integer hostlong を ホストバイトオーダーからネットワークバイトオーダーに変換する。 htons () 関数は unsigned short integer hostshort を ホストバイトオーダーからネットワークバイトオーダーに変換する。 ntohl () 関数 ... が先に配置される。 属性 この節で使用されている用語の説明は attributes (7) を参照のこと。 Interface Attribute Value htonl (), htons (), ntohl (), ntohs () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008. いくつかのシステムでは、 < arpa/inet.h > の代 ... ... _t hostlong ); uint16_t htons(uint16_t hostshort ); uint32_t ntohl(uint32_t netlong ); uint16_t ntohs(uint16_t netshort ); 説明 htonl () 関数は unsigned ... integer hostlong を ホストバイトオーダーからネットワークバイトオーダーに変換する。 htons () 関数は unsigned short integer hostshort を ホストバイトオーダーからネットワークバイトオーダーに変換する。 ntohl () 関数 ... が先に配置される。 属性 この節で使用されている用語の説明は attributes (7) を参照のこと。 Interface Attribute Value htonl (), htons (), ntohl (), ntohs () Thread safety MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008. いくつかのシステムでは、 < arpa/inet.h > の代 ... ... &yes, sizeof(yes)) == -1) { perror("setsockopt"); close(lfd); return -1; } memset(&addr, 0, sizeof(addr)); addr.sin_port = htons(listen_port); addr.sin_family = AF_INET; if (bind(lfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) { perror("bind"); c ... (AF_INET, SOCK_STREAM, 0); if (cfd == -1) { perror("socket"); return -1; } memset(&addr, 0, sizeof(addr)); addr.sin_port = htons(connect_port); addr.sin_family = AF_INET; if (!inet_aton(address, (struct in_addr *) &addr.sin_addr.s_addr)) { fprintf(std ... ... ocket()"); exit(EXIT_FAILURE); } addr.sin_family = AF_INET; addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); addr.sin_port = htons(1234); if (connect(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) { perror("connect()"); exit(EXIT_FAILURE); } me ... ... ocket()"); exit(EXIT_FAILURE); } addr.sin_family = AF_INET; addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); addr.sin_port = htons(1234); if (bind(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) { perror("bind()"); exit(EXIT_FAILURE); } memset(m ... ... ]; char *protop; if (argc < 3) { printf("Usage: %s port-num proto-name [buflen]\n", argv[0]); exit(EXIT_FAILURE); } port = htons(atoi(argv[1])); protop = (strcmp(argv[2], "null") == 0 || strcmp(argv[2], "NULL") == 0) ? NULL : argv[2]; buflen = 1024; i ... ... ]; char *protop; if (argc < 3) { printf("Usage: %s port-num proto-name [buflen]\n", argv[0]); exit(EXIT_FAILURE); } port = htons(atoi(argv[1])); protop = (strcmp(argv[2], "null") == 0 || strcmp(argv[2], "NULL") == 0) ? NULL : argv[2]; buflen = 1024; i ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。