tcp.7: Document MSG_TRUNC flag for TCP sockets

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-12-01 11:25:18 -05:00
parent 5dfedcae40
commit 238534b031
1 changed files with 16 additions and 0 deletions

View File

@ -975,6 +975,22 @@ It is possible to peek at out-of-band data using the
.IR recv (2)
.B MSG_PEEK
flag.
Since version 2.4, Linux supports the use of
.B MSG_TRUNC
in the
.I flags
argument of
.BR recv (2)
(and
.BR recvmsg (2)).
This flag causes the received bytes of data to be discarded,
rather than passed back in a caller-supplied buffer.
Since Linux 2.4.4,
.BR MSG_PEEK
also has this effect when used in conjunction with
.BR MSG_OOB
to receive out-of-band data.
.SS Ioctls
These following
.BR ioctl (2)