Initial
This commit is contained in:
25
CapServer/Main.cpp
Normal file
25
CapServer/Main.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <common/windows.hpp>
|
||||
#include <common/string.hpp>
|
||||
#include <CapServer/MainApplication.hpp>
|
||||
|
||||
int handlerRoutine(DWORD ctrlType);
|
||||
|
||||
bool running=true;
|
||||
|
||||
MainApplication mainApplication;
|
||||
|
||||
void main(int argc,char **argv)
|
||||
{
|
||||
mainApplication.run(argc,argv);
|
||||
}
|
||||
|
||||
int handlerRoutine(DWORD eventType) // this is connected ad-hoc to generic server, could be cleaner
|
||||
{
|
||||
if(CTRL_C_EVENT==eventType)
|
||||
{
|
||||
::printf("Caught Ctrl-C...\n");
|
||||
running=false;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user