This commit is contained in:
Peter Harpending 2025-09-23 16:13:19 -07:00
parent b1f3e0de89
commit 9c5b332e00

View File

@ -145,6 +145,7 @@ These are heuristics that are good starting points
```erlang
%% gex_httpd.erl
-spec listen(PortNum) -> Result
when PortNum :: inet:port_num(),
Result :: ok
@ -157,7 +158,8 @@ These are heuristics that are good starting points
gh_client_man:listen(PortNum).
%% gh_client_man:listen(8080)
%% gh_client_man.erl
listen(PortNum) ->
gen_server:call(?MODULE, {listen, PortNum}).
```