File: counter_cgi.ml

package info (click to toggle)
ocamlnet 2.2.9-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 17,724 kB
  • ctags: 10,053
  • sloc: ml: 63,928; ansic: 1,973; makefile: 800; sh: 651
file content (7 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
(** CGI execution.  You could of course copy the code of counter.ml
    here but it is not done in order to reuse counter.ml with other
    connectors. *)

let () =
  let buffered _ ch = new Netchannels.buffered_trans_channel ch in
  Netcgi_cgi.run ~output_type:(`Transactional buffered) Counter.main