readme
This commit is contained in:
parent
b1f3e0de89
commit
9c5b332e00
@ -145,6 +145,7 @@ These are heuristics that are good starting points
|
|||||||
|
|
||||||
```erlang
|
```erlang
|
||||||
%% gex_httpd.erl
|
%% gex_httpd.erl
|
||||||
|
|
||||||
-spec listen(PortNum) -> Result
|
-spec listen(PortNum) -> Result
|
||||||
when PortNum :: inet:port_num(),
|
when PortNum :: inet:port_num(),
|
||||||
Result :: ok
|
Result :: ok
|
||||||
@ -157,7 +158,8 @@ These are heuristics that are good starting points
|
|||||||
gh_client_man:listen(PortNum).
|
gh_client_man:listen(PortNum).
|
||||||
|
|
||||||
|
|
||||||
%% gh_client_man:listen(8080)
|
%% gh_client_man.erl
|
||||||
|
|
||||||
listen(PortNum) ->
|
listen(PortNum) ->
|
||||||
gen_server:call(?MODULE, {listen, PortNum}).
|
gen_server:call(?MODULE, {listen, PortNum}).
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user