]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/examples/always_ok_daemon.ml
- ported to latest API
[helm.git] / helm / DEVEL / ocaml-http / examples / always_ok_daemon.ml
index 492be655aaa62f6a2045a9bd6a0495ef3fe9c9a5..d5d456d7481d9a22488c4802dcadb2168775ab4f 100644 (file)
@@ -2,7 +2,7 @@
 (*
   OCaml HTTP - do it yourself (fully OCaml) HTTP daemon
 
-  Copyright (C) <2002> Stefano Zacchiroli <zack@cs.unibo.it>
+  Copyright (C) <2002-2004> Stefano Zacchiroli <zack@cs.unibo.it>
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -22,4 +22,5 @@
 open Http_daemon;;
   (* start an http daemon that alway respond with a 200 status code and an empty
   content *)
-start ~port:9999 (fun _ _ outchan -> respond outchan)
+start ~port:9999 ~addr:"localhost" (fun _ _ outchan -> respond outchan)
+