[erlang-questions] JInterface and node discovery

Per Hedeland per@REDACTED
Thu Dec 14 23:38:29 CET 2006

Mats Cronqvist <mats.cronqvist@REDACTED> wrote:
>Per Hedeland wrote:
>> Mats Cronqvist <mats.cronqvist@REDACTED> wrote:
>>>   is it just me or is the erlang version significantly shorter? :>
>> There is an even shorter one though:
>>  erl_epmd:names()
>   using undocumented functions is cheating...
>   but seriously, thanks for the pointer.
>   mats
>p.s. why is it undocumented?

I could venture a guess that it's because you're not "supposed to" use
epmd "directly" - there's no particular reason to assume that you have
any business trying to talk to other nodes that happen to be running on
the same (or any particular) host, nor that the nodes that you *have*
some business trying to talk to *are* running on the same (or...) host.
The essential purpose of epmd is to provide the listen port number for a
given node (name@REDACTED), and that information is collected (and used)
under the cover for you by the interfaces that *are* documented.


More information about the erlang-questions mailing list