OSDN Git Service

Update release for LDP 3.67
[linuxjm/LDP_man-pages.git] / release / man2 / recv.2
index 3f1d2b5..f2bdd28 100644 (file)
@@ -61,7 +61,7 @@
 .\" Updated 2013-03-26, Akihiro MOTOKI <amotoki@gmail.com>
 .\" Updated 2013-07-22, Akihiro MOTOKI <amotoki@gmail.com>
 .\"
-.TH RECV 2 2014\-02\-11 Linux "Linux Programmer's Manual"
+.TH RECV 2 2014\-05\-10 Linux "Linux Programmer's Manual"
 .SH 名前
 recv, recvfrom, recvmsg \- ソケットからメッセージを受け取る
 .SH 書式
@@ -227,12 +227,19 @@ struct msghdr {
 .fi
 .in
 .PP
-\fImsg_name\fP と \fImsg_namelen\fP は、ソケットが接続されていない場合に送信元のアドレスを指定する。 名前が必要ない場合には
-\fImsg_name\fP にヌルポインタを指定する。 \fImsg_iov\fP と \fImsg_iovlen\fP フィールドは \fBreadv\fP(2)
-に記述されているような分解/結合用のベクトル (scatter\-gather locations)  を指定する。 \fImsg_control\fP
-フィールドは \fImsg_controllen\fP の長さを持ち、他のプロトコル制御メッセージや 種々の補助データのためのバッファへのポインタである。
-\fBrecvmsg\fP()  を呼ぶ際には、 \fImsg_controllen\fP に \fImsg_control\fP
-のバッファの長さを入れておく必要がある。 コールが成功して返った場合、制御メッセージ列の長さが入っている。
+The \fImsg_name\fP field points to a caller\-allocated buffer that is used to
+return the source address if the socket is unconnected.  The caller should
+set \fImsg_namelen\fP to the size of this buffer before this call; upon return
+from a successful call, \fImsg_name\fP will contain the length of the returned
+address.  If the application does not need to know the source address,
+\fImsg_name\fP can be specified as NULL.
+
+\fImsg_iov\fP と \fImsg_iovlen\fP フィールドは、分解/結合用のベクトル (scatter\-gather locations)
+を指定する。 \fBreadv\fP(2) に説明がある。
+
+\fImsg_control\fP フィールドは \fImsg_controllen\fP の長さを持ち、他のプロトコル制御メッセージや
+種々の補助データのためのバッファへのポインタである。 \fBrecvmsg\fP()  を呼ぶ際には、 \fImsg_controllen\fP に
+\fImsg_control\fP のバッファの長さを入れておく必要がある。 コールが成功して返った場合、制御メッセージ列の長さが入っている。
 .PP
 メッセージの形式は以下の通り:
 .in +4n
@@ -343,6 +350,6 @@ POSIX.1\-2001 では、構造体 \fImsghdr\fP のフィールド \fImsg_controll
 \fBfcntl\fP(2), \fBgetsockopt\fP(2), \fBread\fP(2), \fBrecvmmsg\fP(2), \fBselect\fP(2),
 \fBshutdown\fP(2), \fBsocket\fP(2), \fBcmsg\fP(3), \fBsockatmark\fP(3), \fBsocket\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。