OSDN Git Service

Update drafts for LDP 3.67
[linuxjm/LDP_man-pages.git] / draft / man2 / recv.2
index 0f309b3..39a1049 100644 (file)
@@ -227,12 +227,10 @@ struct msghdr {
 .fi
 .in
 .PP
-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_name\fP は、 ソケットが接続されていない場合に送信元アドレスを返すのに使用されるバッファを指す。
+このバッファは呼び出し元が確保する。 呼び出し元は呼び出し前に \fImsg_namelen\fP にこのバッファの大きさを設定しなければならない。
+呼び出しが成功した場合、呼び出しから返って来た際には \fImsg_namelen\fP には返されるアドレスの長さが入っている。
+アプリケーションが送信元アドレスを知る必要がない場合には、 \fImsg_name\fP に NULL を指定することができる。
 
 \fImsg_iov\fP と \fImsg_iovlen\fP フィールドは scatter\-gather 用の場所を指定する。 \fBreadv\fP(2)
 に説明がある。