no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1227 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-08-11 19:31:17 +00:00
parent f97ca126f0
commit 2089b76a9f
2 changed files with 18 additions and 18 deletions
+4 -3
View File
@@ -2,7 +2,7 @@
struct servercontroller
{
virtual bool start() = 0;
virtual void start() = 0;
virtual void keepalive() = 0;
virtual void stop() = 0;
int argc;
@@ -24,10 +24,11 @@ struct winservice : servercontroller
callbacks::svc = NULL;
}
bool start() // starts the server again on a new thread and returns once the windows service has stopped
void start() // starts the server again on a new thread and returns once the windows service has stopped
{
SERVICE_TABLE_ENTRY dispatchtable[] = { "assaultcubeserver", (LPSERVICE_MAIN_FUNCTION)callbacks::main, NULL, NULL };
return StartServiceCtrlDispatcher(dispatchtable);
if(StartServiceCtrlDispatcher(dispatchtable)) exit(EXIT_SUCCESS);
else fatal("an error occurred running the AC server as windows service");
}
void keepalive()