[fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated
md at delfire.net
Mon May 3 14:47:46 CEST 2010
On Mon, May 3, 2010 at 9:37 AM, Rainer Stratmann
<RainerStratmann at t-online.de> wrote:
> I don't know what CGI is. Nevertheless I was able to program a webserver
> completely in freepascal. It isn't that complicate (if you have time).
> If a connection comes in then I prove how many connections are already open,
> and if it exceeds the max_connection value (which I set to 20 now) then I
> close immediately the new incoming connection. If you want I show you sample
> code. I work with nonblocked sockets. So everything is in one thread.
I will appreciate it very much see this code, thanks!
More information about the fpc-pascal