From a63ee9b363aa7214343966690b50d77f4d3475e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 1 Aug 2018 16:52:33 +0200 Subject: Ranch 1.6.0 --- docs/en/ranch/1.6/manual/ranch.get_port/index.html | 170 +++++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 docs/en/ranch/1.6/manual/ranch.get_port/index.html (limited to 'docs/en/ranch/1.6/manual/ranch.get_port/index.html') diff --git a/docs/en/ranch/1.6/manual/ranch.get_port/index.html b/docs/en/ranch/1.6/manual/ranch.get_port/index.html new file mode 100644 index 00000000..ee77e0f2 --- /dev/null +++ b/docs/en/ranch/1.6/manual/ranch.get_port/index.html @@ -0,0 +1,170 @@ + + + + + + + + + + Nine Nines: ranch:get_port(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

ranch:get_port(3)

+ +

Name

+

ranch:get_port - Get the listening port

+

Description

+
+
get_port(Ref :: ranch:ref())
+    -> Port :: inet:port_number()
+
+

Get the listening port.

+

This function is particularly useful to retrieve the listening port number when it was not provided in the options and was chosen randomly instead.

+

Arguments

+
Ref
+

The listener name.

+
+
+

Return value

+

The listening port is returned.

+

Examples

+
Get the listening port
+
+
Port = ranch:get_port(example).
+
+

See also

+

ranch:start_listener(3), ranch:get_addr(3), ranch:info(3), ranch(3)

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

+ Ranch + 1.6 + Function Reference + +

+ + + +

Navigation

+ +

Version select

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