473,413 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

calling a windows service

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?
Aug 11 '05 #1
3 1933
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.

"CLEAR-RCIC" wrote:
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?

Aug 12 '05 #2
So do I need to write some sort of socket program to do the communications?

"Ganesh" wrote:
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.

"CLEAR-RCIC" wrote:
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?

Aug 12 '05 #3
Yes, something like POP3 or SMTP service which runs on a specific port that
handles the queries from remote client through predefind protocols.

"CLEAR-RCIC" wrote:
So do I need to write some sort of socket program to do the communications?

"Ganesh" wrote:
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.

"CLEAR-RCIC" wrote:
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?

Aug 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michael Brandt Lassen | last post by:
Hi gurus This problem is about calling Web services secured by Forms Authentication from Windows Forms user controls embedded in HTML. Using the object tag I’ve managed to include a Windows...
3
by: belgiozen | last post by:
Hi, I have a working windows service,it is looking for files on the disk and when some of the files are cupdated it calls an executable. But it takes a lot of time(about 10 minutes) to run the...
1
by: Bucky Pollard | last post by:
I have a web service that needs to create a batch file and call it (since there are no APIs for the functionality I am looking for). I am using the Process and ProcessStartInfo objects. When I try...
3
by: Gary | last post by:
I am using VS.Net 2002 with windows 2000 advanced server and windows 2000 professional. I have a requirement to use windows service with a GUI. I want to show my own User Interface(Dialog) to get...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
1
by: Jaime Stuardo | last post by:
i all, I have a web service in a Windows 2003 Server machine and ASP.NET 2.0. The website has windows integrated security so that, in order to allow domain users to connect to it, I add...
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
1
by: Manuel Brandao | last post by:
Hi all I would like to now the answer to the following problem, if someone can help. Given a windows application client that's calling a web service (using default credentials) the web...
7
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test...
1
by: samdediacre | last post by:
Hi all, I have developped a very simple Windows service that references a managed .NET dll. the code within the dll contains a static class to read/write data from registry. So the OnStart()...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.