can a program become a service?
i have a very basic client server program in c++ console application where the client sends a message to the server, the server accepts the message and echoes it back to the client.
can the server become an application that runs as a service and still echo back the clients messages?
if i can do this how is it done?
Re: can a program become a service?
You could start from what has beendiscussed here
Re: can a program become a service?
thanks but that link didn't help much.
ok so i know a program can become a service but can the server still echo back the clients messages?
Re: can a program become a service?
Any program can become a service if it "behaves like a service". that is... it's not interactive and it doesn't do certain things that services aren't allowed to do.
You can either rewrite the app to specifically respond to the system as a service.
Or you can use a tool called SRVANY.
Note that this SRVANY approach does have it's limitations...
Re: can a program become a service?
Quote:
Originally Posted by
kw1991
ok so i know a program can become a service but can the server still echo back the clients messages?
Let's start with some other thing. What is the point of making your program be a service? How much you know about service programs, especially Windows Vista/7 services that are just not allowed to interact with user desktops?
Re: can a program become a service?
Quote:
Originally Posted by
kw1991
thanks but that link didn't help much.
ok so i know a program can become a service but can the server still echo back the clients messages?
Sure, a service can pass data between client applications. You'll need to do some sort of interprocess communication.