Ejemplo n.º 1
0
int main()
{
    std::wstring commandLine;
    commandlineProcessor options;
    initProcessor(commandLine, options);
    if (options.s)
    {
        return systemExecute(commandLine);
    }
    else if (options.i)
    {
        return serviceExecute(commandLine);
    }
    else
    {
        return execute(commandLine, options);
    }
}
Ejemplo n.º 2
0
Contest::Contest(char *hostname) {
  cout << "Initialize Logger...";
  initLogger();
  cout << "done" << endl;

  logMsg("Initialize Processor object...");
  initProcessor();
  logMsg("done\n");

	logMsg("New Contest started\n");
	iaddr = new ACE_INET_Addr(PORT_NUM);

	logMsg("Initialize Random Number Generator...");
	srand(time(0));
	logMsg("done\n");

	logMsg("Initialize Timers...");
	initTimers();
	logMsg("done\n");

  ReadyToShutdown = false;
  basethreadpid = ACE_OS::getpid();
  SetupPrizes = true;
}