Skip to content

Commit bc3f4cb

Browse files
committed
Docs and new broadcast.
1 parent d36bac0 commit bc3f4cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server.pl

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from the shell to start the SWISH server accessible on
4747
http://localhost:3050/
4848
49-
swipl run.pl
49+
swipl run.pl [--public] [--port=Port]
5050
5151
@see run.pl and daemon.pl
5252
*/
@@ -57,13 +57,16 @@
5757
% Start the web-server on Port. Port may be unbound to make the
5858
% system select a free port. Port can also be of the form
5959
% `localhost:Port` to bind the server only to the localhost
60-
% interface.
60+
% interface. The broadcast messages are compatible with
61+
% library(http/http_unix_daemon).
6162

6263
server :-
6364
server(localhost:3050).
6465
server(Port) :-
6566
broadcast(http(pre_server_start)),
67+
broadcast(http(pre_server_start(Port))),
6668
http_server(http_dispatch,
6769
[ port(Port)
6870
]),
71+
broadcast(http(post_server_start(Port))),
6972
broadcast(http(post_server_start)).

0 commit comments

Comments
 (0)