在文档中的任何地方都没有看到这个提到但是如果一个节点远程与另一个节点通信,接收节点只是通过使用“From”变量中包含的PID来响应发送节点吗?
答案 0 :(得分:3)
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.