Re: multiple process notification
From: Donald Roby (droby_at_acm.org)
Date: 10/09/04
- Next message: lukasz: "Re: multiple process notification"
- Previous message: Steve Webb: "Re: J2EE Book ?"
- In reply to: lukasz: "multiple process notification"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 09 Oct 2004 14:18:19 GMT
On Thu, 07 Oct 2004 07:23:47 -0700, lukasz wrote:
> Hi
>
> I'm a java newbie trying to find a solution to the following problem. I
> need to send a broadcast or a signal to multiple cliens running on the
> same machine. The clients would then connect to the server to confirm
> the receipt of such broadcast/signal/event/whatever. This is supposed to
> be a basic control mechanism between worker processes and a process
> monitor. I guess the receipt from a client can be done with sockets, but
> how do I broadcast to processes on the same machine?
>
> Thanks,
> Lukasz
You might want to use multicast sockets for this. Take a look at
http://java.sun.com/docs/books/tutorial/networking/datagrams/broadcasting.html
and maybe the rest of the networking tutorial around it.
I haven't done it myself, but I believe with multicast you ARE allowed to
have multiple clients running on the same machine listening on the same
multicast port. This is certainly not something you can do with unicast
sockets.
- Next message: lukasz: "Re: multiple process notification"
- Previous message: Steve Webb: "Re: J2EE Book ?"
- In reply to: lukasz: "multiple process notification"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|