JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... msg2.iov_base = "three"; msg2.iov_len = 5; memset(msg, 0, sizeof(msg)); msg[0].msg_hdr.msg_iov = msg1; msg[0].msg_hdr.msg_iovlen = 2; msg[1].msg_hdr.msg_iov = &msg2; msg[1].msg_hdr.msg_iovlen = 1; retval = sendmmsg(sockfd, msg, 2, 0); if (retval == -1 ... ... 追加のアドレス */ socklen_t msg_namelen; /* アドレスのサイズ */ struct iovec *msg_iov; /* scatter/gather 配列 */ size_t msg_iovlen; /* msg_iov の要素数 */ void *msg_control; /* 補助データ (後述) */ size_t msg_controllen; /* 補助データバッファー長 */ int ... 接続済のソケットについては、これらのフィールドにはそれぞれ NULL と 0 を指定しなければならない。 フィールド msg_iov と msg_iovlen は scatter-gather 用の場所を指定する。 writev (2) と同じ。 You may send control information (ancillary data) using the msg ... 注意 According to POSIX.1-2001, the msg_controllen field of the msghdr structure should be typed as socklen_t , and the msg_iovlen field should be typed as int , but glibc currently types both as size_t . sendmmsg (2) には、一度の呼び出しでの複数のデータ ... ... 追加のアドレス */ socklen_t msg_namelen; /* アドレスのサイズ */ struct iovec *msg_iov; /* scatter/gather 配列 */ size_t msg_iovlen; /* msg_iov の要素数 */ void *msg_control; /* 補助データ (後述) */ size_t msg_controllen; /* 補助データバッファー長 */ int ... 接続済のソケットについては、これらのフィールドにはそれぞれ NULL と 0 を指定しなければならない。 フィールド msg_iov と msg_iovlen は scatter-gather 用の場所を指定する。 writev (2) と同じ。 You may send control information (ancillary data) using the msg ... 注意 According to POSIX.1-2001, the msg_controllen field of the msghdr structure should be typed as socklen_t , and the msg_iovlen field should be typed as int , but glibc currently types both as size_t . sendmmsg (2) には、一度の呼び出しでの複数のデータ ... ... 追加のアドレス */ socklen_t msg_namelen; /* アドレスのサイズ */ struct iovec *msg_iov; /* scatter/gather 配列 */ size_t msg_iovlen; /* msg_iov の要素数 */ void *msg_control; /* 補助データ (後述) */ size_t msg_controllen; /* 補助データバッファー長 */ int ... 接続済のソケットについては、これらのフィールドにはそれぞれ NULL と 0 を指定しなければならない。 フィールド msg_iov と msg_iovlen は scatter-gather 用の場所を指定する。 writev (2) と同じ。 You may send control information (ancillary data) using the msg ... 注意 According to POSIX.1-2001, the msg_controllen field of the msghdr structure should be typed as socklen_t , and the msg_iovlen field should be typed as int , but glibc currently types both as size_t . sendmmsg (2) には、一度の呼び出しでの複数のデータ ... ... 追加のアドレス */ socklen_t msg_namelen; /* アドレスのサイズ */ struct iovec *msg_iov; /* scatter/gather 配列 */ size_t msg_iovlen; /* msg_iov の要素数 */ void *msg_control; /* 補助データ (後述) */ size_t msg_controllen; /* 補助データバッファー長 */ int ... ている。 アプリケーションが送信元アドレスを知る必要がない場合には、 msg_name に NULL を指定することができる。 msg_iov と msg_iovlen フィールドは scatter-gather 用の場所を指定する。 readv (2) に説明がある。 msg_control フィールドは msg_controllen の長さを ... も参照。 According to POSIX.1, the msg_controllen field of the msghdr structure should be typed as socklen_t , and the msg_iovlen field should be typed as int , but glibc currently types both as size_t . recvmmsg (2) には、一度の呼び出しでの複数のデータ ... ... 追加のアドレス */ socklen_t msg_namelen; /* アドレスのサイズ */ struct iovec *msg_iov; /* scatter/gather 配列 */ size_t msg_iovlen; /* msg_iov の要素数 */ void *msg_control; /* 補助データ (後述) */ size_t msg_controllen; /* 補助データバッファー長 */ int ... ている。 アプリケーションが送信元アドレスを知る必要がない場合には、 msg_name に NULL を指定することができる。 msg_iov と msg_iovlen フィールドは scatter-gather 用の場所を指定する。 readv (2) に説明がある。 msg_control フィールドは msg_controllen の長さを ... も参照。 According to POSIX.1, the msg_controllen field of the msghdr structure should be typed as socklen_t , and the msg_iovlen field should be typed as int , but glibc currently types both as size_t . recvmmsg (2) には、一度の呼び出しでの複数のデータ ... ... 追加のアドレス */ socklen_t msg_namelen; /* アドレスのサイズ */ struct iovec *msg_iov; /* scatter/gather 配列 */ size_t msg_iovlen; /* msg_iov の要素数 */ void *msg_control; /* 補助データ (後述) */ size_t msg_controllen; /* 補助データバッファー長 */ int ... ている。 アプリケーションが送信元アドレスを知る必要がない場合には、 msg_name に NULL を指定することができる。 msg_iov と msg_iovlen フィールドは scatter-gather 用の場所を指定する。 readv (2) に説明がある。 msg_control フィールドは msg_controllen の長さを ... も参照。 According to POSIX.1, the msg_controllen field of the msghdr structure should be typed as socklen_t , and the msg_iovlen field should be typed as int , but glibc currently types both as size_t . recvmmsg (2) には、一度の呼び出しでの複数のデータ ... ... ++) { iovecs[i].iov_base = bufs[i]; iovecs[i].iov_len = BUFSIZE; msgs[i].msg_hdr.msg_iov = &iovecs[i]; msgs[i].msg_hdr.msg_iovlen = 1; } timeout.tv_sec = TIMEOUT; timeout.tv_nsec = 0; retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout); if (retval == -1 ... ... nsure it is suitably aligned */ char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control = u.buf; msg.msg_controllen = sizeof(u.buf); cmsg = CMSG_FIRSTHDR(&msg); cmsg->cmsg_level = SOL_SOCKE ... ... nsure it is suitably aligned */ char buf[CMSG_SPACE(sizeof(myfds))]; struct cmsghdr align; } u; msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control = u.buf; msg.msg_controllen = sizeof(u.buf); cmsg = CMSG_FIRSTHDR(&msg); cmsg->cmsg_level = SOL_SOCKE ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。