summaryrefslogtreecommitdiffstats
path: root/man7/socket.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/socket.7')
-rw-r--r--man7/socket.715
1 files changed, 5 insertions, 10 deletions
diff --git a/man7/socket.7 b/man7/socket.7
index b5d70cf26..2cc24d90e 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -1,14 +1,9 @@
'\" t
+.\" SPDX-License-Identifier: Linux-man-pages-1-para
+.\"
.\" This man page is Copyright (C) 1999 Andi Kleen <ak@muc.de>.
.\" and copyright (c) 1999 Matthew Wilcox.
.\"
-.\" %%%LICENSE_START(VERBATIM_ONE_PARA)
-.\" Permission is granted to distribute possibly modified copies
-.\" of this page provided the header is included verbatim,
-.\" and in case of nontrivial modification author and date
-.\" of the modification is added to the header.
-.\" %%%LICENSE_END
-.\"
.\" 2002-10-30, Michael Kerrisk, <mtk.manpages@gmail.com>
.\" Added description of SO_ACCEPTCONN
.\" 2004-05-20, aeb, added SO_RCVTIMEO/SO_SNDTIMEO text.
@@ -52,7 +47,7 @@
.\" commit ea02f9411d9faa3553ed09ce0ec9f00ceae9885e
.\" Author: Michal Sekletar <msekleta@redhat.com>
.\"
-.TH socket 7 2023-02-05 "Linux man-pages 6.03"
+.TH socket 7 2023-07-15 "Linux man-pages 6.05.01"
.SH NAME
socket \- Linux socket interface
.SH SYNOPSIS
@@ -539,7 +534,7 @@ flows are received.
It allows each worker thread to be associated with
a NIC HW receive queue and service all the connection
requests received on that RX queue.
-This mapping between a app thread and
+This mapping between an app thread and
a HW NIC queue streamlines the
flow of data from the NIC to the application.
.TP
@@ -705,7 +700,7 @@ calls would have the effect noted in the comments:
.EX
int ov = 4; // Set peek offset to 4
setsockopt(fd, SOL_SOCKET, SO_PEEK_OFF, &ov, sizeof(ov));
-
+\&
recv(fd, buf, 2, MSG_PEEK); // Peeks "cc"; offset set to 6
recv(fd, buf, 2, MSG_PEEK); // Peeks "dd"; offset set to 8
recv(fd, buf, 2, 0); // Reads "aa"; offset set to 6