From 236d0f8eec82eb43c566d4aa6d2532e1318665f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 25 Aug 2015 18:49:58 +0200 Subject: Add ranch:get_addr/1 --- doc/src/manual/ranch.asciidoc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/src/manual/ranch.asciidoc b/doc/src/manual/ranch.asciidoc index f2e8a7d..22ab159 100644 --- a/doc/src/manual/ranch.asciidoc +++ b/doc/src/manual/ranch.asciidoc @@ -82,6 +82,14 @@ Return child specifications for a new listener. This function can be used to embed a listener directly in an application instead of letting Ranch handle it. +=== get_addr(Ref) -> {IP, Port} + +Ref = ref():: Listener name. +IP = inet:ip_address():: IP of the interface used by this listener. +Port = inet:port_number():: Port number used by this listener. + +Return the IP address and port for the given listener. + === get_max_connections(Ref) -> MaxConns Ref = ref():: Listener name. -- cgit v1.2.3