blob: eb45614401d9c66a97ba0d3e9025e5f592c8f079 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
= ranch:get_status(3)
== Name
ranch:get_status - Get a listener's running state
== Description
[source,erlang]
----
get_status(Ref :: ranch_ref()) -> running | suspended
----
Get a listener's running state.
== Arguments
Ref::
The listener name.
== Return value
An atom is returned indicating the running status of the listener.
== Changelog
* *1.6*: Function introduced.
== Examples
.Get a listener's running state
[source,erlang]
----
ranch:get_status(example).
----
== See also
link:man:ranch:start_listener(3)[ranch:start_listener(3)],
link:man:ranch:stop_listener(3)[ranch:stop_listener(3)],
link:man:ranch:suspend_listener(3)[ranch:suspend_listener(3)],
link:man:ranch:resume_listener(3)[ranch:resume_listener(3)],
link:man:ranch:set_transport_options(3)[ranch:set_transport_options(3)],
link:man:ranch:wait_for_connections(3)[ranch:wait_for_connections(3)],
link:man:ranch(3)[ranch(3)]
|