mirror of https://github.com/mkerrisk/man-pages
tcp.7: Document MSG_TRUNC flag for TCP sockets
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
5dfedcae40
commit
238534b031
16
man7/tcp.7
16
man7/tcp.7
|
@ -975,6 +975,22 @@ It is possible to peek at out-of-band data using the
|
||||||
.IR recv (2)
|
.IR recv (2)
|
||||||
.B MSG_PEEK
|
.B MSG_PEEK
|
||||||
flag.
|
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
|
.SS Ioctls
|
||||||
These following
|
These following
|
||||||
.BR ioctl (2)
|
.BR ioctl (2)
|
||||||
|
|
Loading…
Reference in New Issue