lib/servpws.c

Go to the documentation of this file.
00001 /* Stuff that's specific for the Personal Web Server goes here. 
00002  *
00003  * This file is copyright 2002 Jim Kent, but license is hereby
00004  * granted for all use - public, private or commercial. */
00005 
00006 #include "common.h"
00007 #include "portable.h"
00008 #include "portimpl.h"
00009 #include "obscure.h"
00010 
00011 static char const rcsid[] = "$Id: servpws.c,v 1.6 2006/06/19 22:02:57 hiram Exp $";
00012 
00013 static char *__trashDir = "..\\trash";
00014 
00015 static void _makeTempName(struct tempName *tn, char *base, char *suffix)
00016 /* Figure out a temp name, and how CGI and HTML will access it. */
00017 {
00018 long tempIx = incCounterFile("tcounter");
00019 sprintf(tn->forCgi, "%s\\%s%ld%s", __trashDir, base, tempIx, suffix);
00020 sprintf(tn->forHtml, "%s\\%s%ld%s", __trashDir, base, tempIx, suffix);
00021 }
00022 
00023 static char *_cgiDir()
00024 {
00025 return "../cgi-bin/";
00026 }
00027 
00028 static char *_trashDir()
00029 {
00030 return __trashDir;
00031 }
00032 
00033 static double _speed()
00034 {
00035 return 1.25;
00036 }
00037         
00038 struct webServerSpecific wssMicrosoftPWS =
00039     {
00040     "Microsoft-PWS",
00041     _makeTempName,
00042     _cgiDir,
00043     _speed,
00044     _trashDir,
00045     };

Generated on Tue Dec 25 18:39:31 2007 for blat by  doxygen 1.5.2