English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Embedded web server
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-20 (13:39)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] Embedded web server
Am Dienstag, den 20.03.2007, 12:31 +0000 schrieb Joel Reymont:
> Gerd,
> On Mar 20, 2007, at 12:15 PM, Gerd Stolpmann wrote:
> > ocamlnet (ocamlnet.sf.net) has a web server library called  
> > nethttpd. It
> > is e.g. used for www.camlcity.org.
> Is the site hosted without Apache, Lighttpd, etc.? Just plain OCaml?

Yes, only plain OCaml.

> Is the source code for camlcity available anywhere?

Yes: https://gps.dynxs.de/svn/app-linkdb/trunk/

Please note: This is currently a bit hackish, because the linkdb
application was originally an ordinary CGI. I more or less pressed it
into the nethttpd frame. The interesting module is probably
linkdb/lib/cgi which creates some kind of fake CGI environment for the
rest of the program. So it is working, but no good example, and the code
is not well-structured. The main program is currently in linkdb/test.
The netplex.cfg isn't the real one. Documentation is lightyears out of
date. Hope you find it still impressive.

Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714