send signal across network(LAN)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

in my program, i want to send a signal to other computer on the network (LAN).
so that when other recieves this signal, it will do something...

What Class should I use for sending the signal?
Is there any example code i can find?

thankyou very much in advance!
 
Hi,

in my program, i want to send a signal to other computer on the network (LAN).
so that when other recieves this signal, it will do something...

What Class should I use for sending the signal?
Is there any example code i can find?

thankyou very much in advance!

There are lots of ways to accomplish this... One common method would be
to use a socket. Look at System.Net and System.Net.Sockets. A good
place to start with .NET sockets:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconsockets.asp

Another method would be remoting. It's also possilbe to use the
Microsoft message queue or even using named pipes. Like I said, there
are many ways to accomplish what your trying to do. You just need to
figure out what is the best method for your particular application.
 
You can do this using Windows sockets.

Look around on Google for one of the various (there are several) VB.NET
examples using TCP to chat across a network. The same thing can be done to
send messages. This should be good if you are doing simple point to point
communications, even if it is one server sending a command to a single
endpoint or a single endpoint in a pool of possible endpoints.

If you want to send out a broadcast type message from one point to several
endpoints at the same time take a look into UDP Multicasting. I can't seem
to locate any good samples of this right now but I know I have seen some out
there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top