Questions about creating my 1st Windows Service
Posted: Fri Oct 16, 2009 9:10 pm
Hi
I need to create a Windows Service that will watch a TCP port for incoming data to capture emergency warnings from fuel sites. I have never created a Windows Service before so I wondered what some of the best practices are:
I assume I will need to run a loop so I wondered how much time should I wait between tests for data so that I do not take all the cpu time etc. Do I just use a Sleep function between tests for data.
What is required to make this program usable as a service in Windows. Are there special considerations for making services? Is the service created as a DLL or EXE?
As you can see I am new at this and have lots to learn. Any advice would be appreciated.
Thanks,
Simon
I need to create a Windows Service that will watch a TCP port for incoming data to capture emergency warnings from fuel sites. I have never created a Windows Service before so I wondered what some of the best practices are:
I assume I will need to run a loop so I wondered how much time should I wait between tests for data so that I do not take all the cpu time etc. Do I just use a Sleep function between tests for data.
What is required to make this program usable as a service in Windows. Are there special considerations for making services? Is the service created as a DLL or EXE?
As you can see I am new at this and have lots to learn. Any advice would be appreciated.
Thanks,
Simon