FastCGI-TCL package
Tom Poindexter's provides a package named
Fcgi.tcl.
Fcgi.tcl is a Tcl interface for the
FastCGI protocol.
Unforuntatly, the latest version don't work with a
recent Tcl or under Windows. I fixed the problems of
the c-src part of this package.
I made only changes on tclFcgiCmd.c.
My Changes are:
- Bug fix: wrong return (Tom used C-return instead of Tcl_SetResult)
- Bug fix: code in wrong order (resetting of env)
- Clean up: DoTclEnv (strange array access)
- Add some Dll-Defines (stolen from the Tcl Extension on Windows Howto
from the scriptics.com site)
- Changes for new Tcl 8.3/8.4 API (Objects instead of strings, new Tcl_ChannelType)
Now it works even under Windows. Here is the dll:
fcgi.dll.
The dll is linked against libfci-2.4.0 and tcl8.4.4.
You can load this package in your tcl interpreter with:
load fcgi.dll
Christoph Bauer