Is there a way to query the name table that epmd daemon manages?
The nodes() function isn't very helpful on that front.
NOTE: I am looking for an API aside from parsing the output generated through stdout.
Is there a way to query the name table that epmd daemon manages?
The nodes() function isn't very helpful on that front.
NOTE: I am looking for an API aside from parsing the output generated through stdout.
To query nodes visible for epmd, call:
To get a list of connected nodes and their ports:
The first call returns you the table in a crash dump format. If you are interested in acquiring the actual ports, use the second one.
You get the same answer as Zed's code by doing:
I don't know if that is a more standard way of doing it or not.