mirror of https://github.com/mkerrisk/man-pages
recv.2: Clarify details of msg_name and msg_namelen fields
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6154a29a77
commit
ddb4a7c01c
15
man2/recv.2
15
man2/recv.2
|
@ -322,13 +322,20 @@ struct msghdr {
|
|||
.fi
|
||||
.in
|
||||
.PP
|
||||
Here,
|
||||
The
|
||||
.I msg_name
|
||||
and
|
||||
field points to a caller-allocated buffer that is used to
|
||||
return the source address if the socket is unconnected.
|
||||
The caller should set
|
||||
.I msg_namelen
|
||||
specify the source address if the socket is unconnected;
|
||||
to the size of this buffer before this call;
|
||||
upon return from a successful call,
|
||||
.I msg_name
|
||||
may be given as a null pointer if no names are desired or required.
|
||||
will contain the length of the returned address.
|
||||
If the application does not need to know the source address,
|
||||
.I msg_name
|
||||
can be specified as NULL.
|
||||
|
||||
The fields
|
||||
.I msg_iov
|
||||
and
|
||||
|
|
Loading…
Reference in New Issue