Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Service/daemon for Ultimate++  () 1 Vote
Service/daemon for Ultimate++ [message #9481] Fri, 11 May 2007 12:24 Go to previous message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
HI all,

i have implemented an interface for Ultimate++ to daemon on Posix and Services on Windows

first some examlpes to wetten your apetite:
#include <Service/Service.h>

using namespace Upp;
char UPP_SERVICE_NAME[]="Simple Service Test";
bool run;

SERVICE_ON_STATE_CHANGE {
	switch(state) {
		case SERVICE_START:
			LOG("let's rock");
			run=true;
			break;
		case SERVICE_PAUSE:
			LOG("i need a pause");
			break;
		case SERVICE_CONTINUE:
			LOG("lets go on");
			break;
		case SERVICE_TERMINATE:
			LOG("i am out of here");
			run=false;
			break;
		default:
			break;
	}
}

SERVICE_APP_MAIN {
	LOG("this is a debug message");
	while(run);
		sleep(100);
}


get it here

thought and suggestions are welcome!
Bas
PS: to install it on windows just run the app with parameter 'i' for install and 'u' for uninstall
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Raster Control
Next Topic: BAZAAR folders restructuration
Goto Forum:
  


Current Time: Sun Apr 28 02:54:43 CEST 2024

Total time taken to generate the page: 0.04027 seconds