mirror of https://github.com/mkerrisk/man-pages
recv.2: Internet datagram and netlink sockets support MSG_TRUNC for recv(2)
Internet datagram (since Linux 2.4.27/2.6.8), and netlink (since Linux 2.6.22) sockets support the MSG_TRUNC flag for recv(2). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
77e75b9077
commit
857842b0cb
17
man2/recv.2
17
man2/recv.2
|
@ -36,7 +36,7 @@
|
|||
.\" Modified 1998,1999 by Andi Kleen
|
||||
.\" 2001-06-19 corrected SO_EE_OFFENDER, bug report by James Hawtin
|
||||
.\"
|
||||
.TH RECV 2 2008-07-14 "Linux" "Linux Programmer's Manual"
|
||||
.TH RECV 2 2008-12-01 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
recv, recvfrom, recvmsg \- receive a message from a socket
|
||||
.SH SYNOPSIS
|
||||
|
@ -254,9 +254,18 @@ Thus, a
|
|||
subsequent receive call will return the same data.
|
||||
.TP
|
||||
.BR MSG_TRUNC " (since Linux 2.2)"
|
||||
Return the real length of the packet, even when it was longer than
|
||||
the passed buffer.
|
||||
Only valid for packet sockets.
|
||||
For raw
|
||||
.RB ( AF_PACKET ),
|
||||
Internet datagram (since Linux 2.4.27/2.6.8),
|
||||
and netlink (since Linux 2.6.22) sockets:
|
||||
return the real length of the packet or datagram,
|
||||
even when it was longer than the passed buffer.
|
||||
Not implemented for Unix domain
|
||||
.RP ( unix (7))
|
||||
sockets.
|
||||
|
||||
For use with Internet stream sockets, see
|
||||
.BR tcp (7).
|
||||
.TP
|
||||
.BR MSG_WAITALL " (since Linux 2.2)"
|
||||
This flag requests that the operation block until the full request is
|
||||
|
|
Loading…
Reference in New Issue