[erlang-questions] Messenger example
Thu Apr 23 20:01:27 CEST 2015
You already got the answer to your question, but I would say that the
author of that "Note" is the one that is seriously confused. There is no
such thing as an "IP domain", and you most certainly can't give "the
first component of the IP address" as argument to -sname. Suggested fix:
Note: erl -sname assumes that all nodes are in the same DNS domain, and
thus that we can use only the first component of the host name. If we
want to use nodes in different DNS domains we must use -name instead,
but then all host names must be fully qualified.
Possibly it should mention the (AFAIK) otherwise undocumented fact that
you can use an IP address as 'Host' in '-name '.
nat n <> wrote:
>I am having trouble running the example from this tutorial:http://www.erlang.org/doc/getting_started/conc_prog.html#id67907In specifics, the "A Larger Example" and the one before that.
>I have two computers on the same network that are running Mininet/Ubuntu (using Virtual Box).What confuses me is this: "(Note: erl -sname assumes that all nodes are in the same IP domain and we can use only the first component of the IP address, if we want to use nodes in different domains we use -name instead, but then all IP address must be given in full.)"How should I then call "erl", what options need to be placed when starting erlang?
More information about the erlang-questions