send.2: Add MSG_FASTOPEN flag
PATCH 1/1 send.2: Add MSG_FASTOPEN flag
From: Wei Wang <[email protected]>
Add MSG_FASTOPEN flag description for send.2
Signed-off-by Wei Wang <[email protected]>
--- man2/send.2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
man2/send.2 +16 -0
@@ -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