How to interface with a windows service?

  • Thread starter Thread starter Benny Raymond
  • Start date Start date
B

Benny Raymond

I created a server that handles a database and that clients can connect
to. The server is a windows service. I'd rather not interface with the
server via TCP like the clients do unless the server admin decides to
open up that option. I was wondering if there are any tutorials that
show how to make an app that can interface with a windows service
running on the current machine. I've been searching for a couple days
and havn't found anything... perhaps i'm searching for the wrong thing?

Thanks,
Benny
 
Benny,

You can always use named pipes, if you want. I don't think that using
TCP is a problem. The transport mechanism isn't what you should be using to
block access, you should have an authentication/authorization scheme in
place to handle this. Then, it doesn't matter what your transport is.

Hope this helps.
 
So then my next question would be:

Is it possible to limit TCPClient connections to the local machine only?
ie: "127.0.0.1"
 
Benny,
So then my next question would be:

Is it possible to limit TCPClient connections to the local machine only?
ie: "127.0.0.1"

I am not quite sure I understand exactly what you want. However, if you
want to stay within the local machine, then a memory-mapped file is another
way to skin this cat.

Regards,

Randy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top