473,508 Members | 2,274 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 2444
I've used UDP for that in the past. Here's a link:
http://www.codeproject.com/vb/net/TinyUDP.asp

"OpticTygre" <op********@adelphia.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********************@fe08.lga...
I've used UDP for that in the past. Here's a link:
http://www.codeproject.com/vb/net/TinyUDP.asp

"OpticTygre" <op********@adelphia.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********@adelphia.net> wrote in message
news:kI********************@adelphia.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
configuration of the windows service.

Any other ideas or suggestions?

Thanks.

-Jason

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

"OpticTygre" <op********@adelphia.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 #4
Beautiful! Thanks for the article. I think this will help tremendously.

"Michael C#" <xy*@abcdef.com> wrote in message
news:jM***************@fe08.lga...
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********@adelphia.net> wrote in message
news:kI********************@adelphia.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
configuration of the windows service.

Any other ideas or suggestions?

Thanks.

-Jason

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

"OpticTygre" <op********@adelphia.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 #5

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

Similar topics

1
14484
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...
2
14272
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...
1
3771
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...
4
1633
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...
3
3596
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...
9
4882
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...
3
1178
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...
0
1574
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...
1
1654
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...
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
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7129
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
7398
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
7502
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...
0
5637
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
4716
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
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.