Besides what others have said, you may find this simple experiment useful in understanding what is going on inside:
1> node(). nonode@nohost 2> term_to_binary(node()). <<131,100,0,13,110,111,110,111,100,101,64,110,111,104,111, 115,116>> 3> self(). <0.32.0> 4> term_to_binary(self()). <<131,103,100,0,13,110,111,110,111,100,101,64,110,111,104, 111,115,116,0,0,0,32,0,0,0,0,0>>
So, you can indicate that the node name is internally stored in pid. Learn more in this section of Learn You Some Erlang.
nacmartin Feb 16 '15 at 13:14 2015-02-16 13:14
source share