Skip to contentSkip to conversation

send.2: Add MSG_FASTOPEN flag

PATCH New Wei Wang 1 participant 1 message Feb 1, 2017 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Wei Wang

author
#0 lore raw

PATCH 1/1 send.2: Add MSG_FASTOPEN flag

From: Wei Wang <[email protected]>

Add MSG_FASTOPEN flag description for send.2

---
 man2/send.2 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
man2/send.2 +16 -0
index 7f2340666..4b1902f75 100644
@@ -255,6 +255,22 @@ data on sockets that support this notion (e.g., of type
 the underlying protocol must also support
 .I out-of-band
 data.
+.TP
+.BR MSG_FASTOPEN " (since Linux 3.7)"
+Marks the attempt to send data in SYN like a combination of
+.BR connect (2)
+operation. It blocks until the handshake has completed and data is
+buffered.
+
+For a non-blocking socket, it returns the number of bytes buffered
+and sent in the SYN packet. If the cookie is not available locally,
+it returns
+.B EINPROGRESS
+, and sends a SYN with a Fast Open cookie request automatically.
+The caller needs to write the data again when the socket is connected.
+On errors, it returns the same errno as
+.BR connect (2)
+if the handshake fails.
 .SS sendmsg()
 The definition of the
 .I msghdr
Signature · 6 lines
2.11.0.483.g087da7b7c-goog

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html