473,545 Members | 2,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending data between applications

I have a windows service, and a separate desktop application used to
configure settings for the service. I'd also like to use the windows
application as a sort of debug, or notification window, to monitor the
activity of the service. What VB.NET programming techniques could be used,
and what resource documentation is there that may tell how to:

a) Notify the windows service from the application that it has started, and
is ready to receive status items.
b) Send status items (text, objects, etc...) to the windows application from
the windows service.
c) Notify the windows service that the application is shutting down, and the
service should stop sending status items.

Thanks for any help and suggestions.

-Jason
Nov 21 '05 #1
4 2447
I've used UDP for that in the past. Here's a link:
http://www.codeproject.com/vb/net/TinyUDP.asp

"OpticTygre " <op********@ade lphia.net> wrote in message
news:-b************** ******@adelphia .com...
I have a windows service, and a separate desktop application used to
configure settings for the service. I'd also like to use the windows
application as a sort of debug, or notification window, to monitor the
activity of the service. What VB.NET programming techniques could be used,
and what resource documentation is there that may tell how to:

a) Notify the windows service from the application that it has started,
and is ready to receive status items.
b) Send status items (text, objects, etc...) to the windows application
from the windows service.
c) Notify the windows service that the application is shutting down, and
the service should stop sending status items.

Thanks for any help and suggestions.

-Jason

Nov 21 '05 #2
I took a look at the UDP example and source, and it seems reliable for
one-way communication. I have two issues, though. One, I'd rather not use
communication over IP. Two, I need two-way communication between the
windows service and the application. This could come in handy not just for
real-time debugging purposes, but also on-the-fly changes of the
configuration of the windows service.

Any other ideas or suggestions?

Thanks.

-Jason

"Michael C#" <xy*@abcdef.com > wrote in message
news:Ud******** ************@fe 08.lga...
I've used UDP for that in the past. Here's a link:
http://www.codeproject.com/vb/net/TinyUDP.asp

"OpticTygre " <op********@ade lphia.net> wrote in message
news:-b************** ******@adelphia .com...
I have a windows service, and a separate desktop application used to
configure settings for the service. I'd also like to use the windows
application as a sort of debug, or notification window, to monitor the
activity of the service. What VB.NET programming techniques could be
used, and what resource documentation is there that may tell how to:

a) Notify the windows service from the application that it has started,
and is ready to receive status items.
b) Send status items (text, objects, etc...) to the windows application
from the windows service.
c) Notify the windows service that the application is shutting down, and
the service should stop sending status items.

Thanks for any help and suggestions.

-Jason


Nov 21 '05 #3
Actually you can use it for two-way communications, you would just run a
server and a client thread on both sides.

Other options include Named Pipes, Shared Memory, etc. You can use these
over .NET Remoting, but the overhead for simple communication between a
Windows Service and a Front-end GUI is pretty outrageous -- at least for my
tastes. And you still have to choose a protocol...

Here's a link to an 11-part article on creating a Named Pipes wrapper, Pipes
server and Pipes client, which might be more to your liking:
http://ivanweb.com/articles/namedpipes/index.cfm
"OpticTygre " <op********@ade lphia.net> wrote in message
news:kI******** ************@ad elphia.com...
I took a look at the UDP example and source, and it seems reliable for
one-way communication. I have two issues, though. One, I'd rather not use
communicatio n over IP. Two, I need two-way communication between the
windows service and the application. This could come in handy not just for
real-time debugging purposes, but also on-the-fly changes of the
configuratio n of the windows service.

Any other ideas or suggestions?

Thanks.

-Jason

"Michael C#" <xy*@abcdef.com > wrote in message
news:Ud******** ************@fe 08.lga...
I've used UDP for that in the past. Here's a link:
http://www.codeproject.com/vb/net/TinyUDP.asp

"OpticTygre " <op********@ade lphia.net> wrote in message
news:-b************** ******@adelphia .com...
I have a windows service, and a separate desktop application used to
configure settings for the service. I'd also like to use the windows
applicatio n as a sort of debug, or notification window, to monitor the
activity of the service. What VB.NET programming techniques could be
used, and what resource documentation is there that may tell how to:

a) Notify the windows service from the application that it has started,
and is ready to receive status items.
b) Send status items (text, objects, etc...) to the windows application
from the windows service.
c) Notify the windows service that the application is shutting down, and
the service should stop sending status items.

Thanks for any help and suggestions.

-Jason



Nov 21 '05 #4
Beautiful! Thanks for the article. I think this will help tremendously.

"Michael C#" <xy*@abcdef.com > wrote in message
news:jM******** *******@fe08.lg a...
Actually you can use it for two-way communications, you would just run a
server and a client thread on both sides.

Other options include Named Pipes, Shared Memory, etc. You can use these
over .NET Remoting, but the overhead for simple communication between a
Windows Service and a Front-end GUI is pretty outrageous -- at least for
my tastes. And you still have to choose a protocol...

Here's a link to an 11-part article on creating a Named Pipes wrapper,
Pipes server and Pipes client, which might be more to your liking:
http://ivanweb.com/articles/namedpipes/index.cfm
"OpticTygre " <op********@ade lphia.net> wrote in message
news:kI******** ************@ad elphia.com...
I took a look at the UDP example and source, and it seems reliable for
one-way communication. I have two issues, though. One, I'd rather not
use communication over IP. Two, I need two-way communication between the
windows service and the application. This could come in handy not just
for real-time debugging purposes, but also on-the-fly changes of the
configurati on of the windows service.

Any other ideas or suggestions?

Thanks.

-Jason

"Michael C#" <xy*@abcdef.com > wrote in message
news:Ud******** ************@fe 08.lga...
I've used UDP for that in the past. Here's a link:
http://www.codeproject.com/vb/net/TinyUDP.asp

"OpticTygre " <op********@ade lphia.net> wrote in message
news:-b************** ******@adelphia .com...
I have a windows service, and a separate desktop application used to
configure settings for the service. I'd also like to use the windows
applicati on as a sort of debug, or notification window, to monitor the
activity of the service. What VB.NET programming techniques could be
used, and what resource documentation is there that may tell how to:

a) Notify the windows service from the application that it has
started, and is ready to receive status items.
b) Send status items (text, objects, etc...) to the windows application
from the windows service.
c) Notify the windows service that the application is shutting down,
and the service should stop sending status items.

Thanks for any help and suggestions.

-Jason



Nov 21 '05 #5

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

Similar topics

1
14497
by: coder_1024 | last post by:
I'm trying to send a packet of binary data to a UDP server. If I send a text string, it works fine. If I attempt to send binary data, it sends a UDP packet with 0 bytes of data (just the headers). I can see this because I'm running Ethereal and watching the packets. I'm defining the packets as shown below: $text_msg = "Hello,...
2
14274
by: Gabriel Gudenus | last post by:
Hi Group! I am just working on a client-server network application which exchanges different Message Classes. (ObjectInputStream and ObjectOutputStream) Now i also would like to send a file over this connection objOut.writeObject(new File("hi,exe")); doesn't work (I just send a reference to this file)
1
3776
by: Daniel | last post by:
after opening socket, sending data then closing socket 3000 times i get "Only one usage of each socket address" what am i doing wrong? is there some thing else i need to do to free up the socket after i send data into it? I simply want to open socket, send data, close socket and have the server just handle one client thread to recieve...
4
1635
by: Christina N | last post by:
What is the easiest way to make an ASP.Net application send data to another web-app? For instance I would like APP3 to log user stats from APP1 and APP2. The applications are located on different IIS servers. Put in another way, can I send a datastring to another web-app without having the IE client expecting a post back from that server? ...
3
3599
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is smtpMail.Send("from@here.com", to@there.com, "Message subject", "Message Body") I'm sending it to my own email address on a different server using...
9
4888
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim strReturnData As String = _ System.Text.Encoding.ASCII.GetString(receiveBytes)
3
1179
by: יוני גולדברג | last post by:
Hi, I have two asp.net applications on different networks. One application has to call some operation/method on the other application and pass two large files as parameters: One file is huge xml file, the second file is big pdf file (dozens of MB). How would you implement this? If i will use Web Service, can i define method/operation with...
0
1580
by: Andrea | last post by:
Hi I've having a very strange problem using the SendInput API to send text to other applications. I've written the code and it seems to work well. I discovered a strange problem: when I try to send the Y character to another application, I got the following characters: Y)
1
1657
by: Charlie | last post by:
Hi: I need a way to test my TcpListner, but not sure what applications are sending data to tcp ports. How about Email or Instant Messenger? If they are tcp, what ports are they sending data to? Any other suggestions? Also, what port do Http responses target on client machine before being rendered in browser? Thanks,
1
1048
by: prakashsakthivel | last post by:
Hi Members, Could anybody please tell that How to use OLE in Excel 2000 for sending or getting data from other applications like .exe, or .xls Thanks musai.
0
7401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7808
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7423
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7757
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5329
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4945
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1884
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 we have to send another system

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.