]> matita.cs.unibo.it Git - helm.git/commitdiff
ZACK: ported to the latest ocaml-http API
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 30 May 2006 08:10:47 +0000 (08:10 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 30 May 2006 08:10:47 +0000 (08:10 +0000)
helm/software/daemons/graphs/tools/drawGraph.ml
helm/software/daemons/graphs/tools/uriSetQueue.ml

index f7c8174965c7b3f5fc190faa19b58ee226980d92..0dc9800fe1c3dac2f226d1ce74dda762c7f8e9dd 100644 (file)
@@ -101,6 +101,7 @@ Sys.chdir (Helm_registry.get "draw_graph.dir");
 printf "%s started and listening on port %d\n" daemon_name port;
 printf "current directory is %s\n" (Sys.getcwd ());
 flush stdout;
-Http_daemon.start' ~port callback;
+let d_spec = Http_daemon.daemon_spec ~port ~callback () in
+Http_daemon.main d_spec;
 printf "%s is terminating, bye!\n" daemon_name
 
index 86bfe35f38c631237c402dddaa73cd4f428e4cbd..9c94d4e9a18a4461a2f678fc59711238f8e7fbdb 100644 (file)
@@ -192,6 +192,7 @@ Helm_registry.load_from configuration_file;
 let port = Helm_registry.get_int "uri_set_queue.port" in
 printf "%s started and listening on port %d\n" daemon_name port;
 flush stdout;
-Http_daemon.start' ~port ~mode:`Thread callback;
+let d_spec = Http_daemon.daemon_spec ~port ~mode:`Thread ~callback () in
+Http_daemon.main d_spec;
 printf "%s is terminating, bye!\n" daemon_name