summaryrefslogtreecommitdiffstats
path: root/man7/socket.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/socket.7')
-rw-r--r--man7/socket.72
1 files changed, 1 insertions, 1 deletions
diff --git a/man7/socket.7 b/man7/socket.7
index 37faf89af..59a7a3f49 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -705,7 +705,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