/* Stuff that's specific for the MS II Web Server goes here.
 *
 * This file is copyright 2002 Jim Kent, but license is hereby
 * granted for all use - public, private or commercial. */

#include "common.h"
#include "portable.h"
#include "portimpl.h"
#include "obscure.h"


static char *__trashDir = "..\\trash";

static void _makeTempName(struct tempName *tn, char *base, char *suffix)
/* Figure out a temp name, and how CGI and HTML will access it. */
{
long tempIx = incCounterFile("tcounter");
sprintf(tn->forCgi, "%s\\%s%ld%s", __trashDir, base, tempIx, suffix);
sprintf(tn->forHtml, "%s\\%s%ld%s", __trashDir, base, tempIx, suffix);
}

static char *_cgiDir()
{
return "";
}

static char *_trashDir()
{
return __trashDir;
}

static double _speed()
{
return 2.5;
}


struct webServerSpecific wssMicrosoftII =
    {
    "Microsoft-IIS",
    _makeTempName,
    _cgiDir,
    _speed,
    _trashDir,
    };
