473,486 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1937
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
1634
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
5107
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
5784
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
8536
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
9045
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
1412
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
2572
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
1276
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
10846
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
2005
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
6964
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
7126
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
7175
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
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.