Re: Question : Broadcast Inter Process Communication ?

Jean Tourrilhes (jt@bougret.hpl.hp.com)
Fri, 17 May 2002 18:57:35 -0700


On Sat, May 18, 2002 at 03:52:33AM +0200, Olaf Dietsche wrote:
> Hi Jean,
>
> > This "one sender - multiple reader" model seems common and
> > usefull enough that there must be a way to do that under Linux. I know
> > that it exist under Windows. Can somebody help me to find out how to
> > do it under Linux ?
>
>
> Maybe, you're looking for multicast. But you need a TCP/IP stack for
> this and I don't know, wether this is implemented in Linux.

I've used multicast with great success in the past and I know
that it's possible to bind a multicast socket on an interface. So,
basically I would bind a multicast socket on the loopback. That what I
was refering to in my e-mail by "UDP broadcast".
But, it just seems to me inefficient to have to go through all
the way down in the network stack to the loopback interface (through
IP and TCP) just for simple IPC. A multicast unix socket would be much
more efficient (because it would no mess with any headers and support
higher MTU).

> Regards, Olaf.

Thanks...

Jean
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/