From 992831c7a516b5183c2af06260829d41aa45267c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 9 Sep 2021 12:15:32 +0200 Subject: Ranch 2.1.0 --- .../2.1/manual/ranch.handshake_continue/index.html | 208 +++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 docs/en/ranch/2.1/manual/ranch.handshake_continue/index.html (limited to 'docs/en/ranch/2.1/manual/ranch.handshake_continue/index.html') diff --git a/docs/en/ranch/2.1/manual/ranch.handshake_continue/index.html b/docs/en/ranch/2.1/manual/ranch.handshake_continue/index.html new file mode 100644 index 00000000..58974738 --- /dev/null +++ b/docs/en/ranch/2.1/manual/ranch.handshake_continue/index.html @@ -0,0 +1,208 @@ + + + + + + + + + + Nine Nines: ranch:handshake_continue(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

ranch:handshake_continue(3)

+ +

Name

+

ranch:handshake_continue - Resume the paused transport handshake

+

Description

+
+
handshake_continue(Ref)       -> {ok, Socket}
+handshake_continue(Ref, Opts) -> {ok, Socket}
+
+Ref    :: ranch:ref()
+Opts   :: any()
+Socket :: any()
+
+

Resume the paused transport handshake.

+

This function must be called by the protocol process in order to resume a paused handshake.

+

Arguments

+
Ref
+

The listener name.

+
+
Opts
+

Transport handshake options.

+

Allowed options depend on the transport module.

+
+
+

Return value

+

An ok tuple is returned containing the socket for the connection.

+

This function will trigger an exception when an error occurs.

+

Changelog

+
  • 2.0: Function introduced. +
  • +
+

Examples

+
Continue a paused transport handshake
+
+
start_link(Ref, Transport, Opts) ->
+    Pid = proc_lib:spawn_link(?MODULE, init,
+        [Ref, Transport, Opts]),
+    {ok, Pid}.
+
+init(Ref, Transport, Opts) ->
+    {continue, _Info} = ranch:handshake(Ref),
+    {ok, Socket} = ranch:handshake_continue(Ref),
+    loop(#state{ref=Ref, socket=Socket,
+        transport=Transport, opts=Opts}).
+
+

See also

+

ranch:handshake(3), ranch:handshake_cancel(3), ranch(3)

+ + + + + + +
+ +
+ + +

+ Ranch + 2.1 + Function Reference + +

+ + + +

Navigation

+ +

Version select

+ + +

Like my work? Donate!

+

Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:

+
+ + + + + + + + + +

Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.

+ + + +
+
+
+
+ + + + + + + + + -- cgit v1.2.3