-
March 21st, 2013, 10:08 AM
#1
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?
-
March 21st, 2013, 10:54 AM
#2
Re: can a program become a service?
You could start from what has beendiscussed here
Victor Nijegorodov
-
March 21st, 2013, 11:04 AM
#3
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?
-
March 21st, 2013, 11:28 AM
#4
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...
-
March 22nd, 2013, 10:31 AM
#5
Re: can a program become a service?
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?
Best regards,
Igor
-
March 22nd, 2013, 01:33 PM
#6
Re: can a program become a service?
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|