[patch] send.2: Add MSG_FASTOPEN flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Wei Wang <weiwan@xxxxxxxxxx>

Add MSG_FASTOPEN flag description for send.2

Signed-off-by: Wei Wang <weiwan@xxxxxxxxxx>
---
 man2/send.2 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/man2/send.2 b/man2/send.2
index 7f2340666..4b1902f75 100644
--- a/man2/send.2
+++ b/man2/send.2
@@ -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
-- 
2.11.0.483.g087da7b7c-goog

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



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux