[erlang-questions] How to send a message to all nodes without UDP broadcast?

Håkan Mattsson hakan@REDACTED
Wed Mar 17 23:10:07 CET 2010


Yet another alternative:

  rpc:abcast(foo, Msg).

/Håkan

2010/3/17 Ulf Wiger <ulf.wiger@REDACTED>:
>
> If you want to include the node you're on:
>
> [{foo,X} ! Msg || X <- [node()|nodes()]].
>
> BR,
> Ulf W
>
> On Wed, 17 Mar 2010 18:48:33 +0100, Hynek Vychodil <hynek@REDACTED>
> wrote:
>
>> [{foo,X} ! Msg || X<- nodes()].
>>
>> On Tue, Mar 9, 2010 at 12:31 AM, 钱晓明 <kyleqian@REDACTED> wrote:
>>>
>>> Hi, this may be a simple question, but I am newer and did not find the
>>> answer in book. I want to send a message to all nodes(using same cookie)
>>> in
>>> one call, but not using the UDP broadcast. How can I do this ? Can
>>> someone
>>> take one minute to answer me ? thanks!


More information about the erlang-questions mailing list