Reputation: 187
Failed to see this mentioned anywhere in the documentation but if a node remote communicate with another node can the receiving node respond to the sending node simply by using the PID contained in the "From" variable?
Upvotes: 0
Views: 46
Reputation: 20004
Yes, see the documentation for erlang:send/2,3
, which says:
Dest may be a remote or local pid, a (local) port, a locally registered name, or a tuple {RegName, Node} for a registered name at another node.
Here, Dest
refers to the destination of the message, and I highlighted the word "remote" in bold to show that a destination PID can refer to a remote process.
Upvotes: 3