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 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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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.
|
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,...
| |
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...
|
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...
|
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: 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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |