public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Wei Wang <weiwan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Wei Wang <weiwan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Subject: [patch] send.2: Add MSG_FASTOPEN flag
Date: Tue, 31 Jan 2017 17:37:03 -0800	[thread overview]
Message-ID: <20170201013703.92907-1-tracywwnj@gmail.com> (raw)

From: Wei Wang <weiwan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>

Add MSG_FASTOPEN flag description for send.2

Signed-off-by: Wei Wang <weiwan-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2017-02-01  1:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-01  1:37 Wei Wang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-15 17:37 [patch] send.2: Add MSG_FASTOPEN flag Wei Wang
2021-09-15 20:13 ` Alejandro Colomar (man-pages)
2021-09-16 21:47   ` Wei Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170201013703.92907-1-tracywwnj@gmail.com \
    --to=weiwan-hpiqsd4aklfqt0dzr+alfa@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox