calling a windows service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We want to write a Windows Service that will open a socket connection to a
remote server and keep it open indefinetly. We want to write a .dll that can
talk to this Windows Service and pass it messages to send to the remote
server. Can this be done? If so, can anyone give me link or some code to
call Windows Service from a .Net .dll?
 
It is very much possible. But make sure your windows service runs on a
particular port in order to accept the incoming requests from remote clients.
A general protocol must be implemented so that the remote machine and windows
service can comminicate with each other.
 
Yes, something like POP3 or SMTP service which runs on a specific port that
handles the queries from remote client through predefind protocols.
 
Back
Top