How can I send a message to another node?
问题 I want to implement a simple chat room in which two nodes can send message to each other synchronous. There is not a node that plays a role of server. Can I use ! to send a message to another node, if i have the pid of the process on this node by function of spawn(Node,Module,Fun,Args) ? 回答1: You can send to processes at another node just the same you would do with a process local to the same node. The trick is of course you need to have the process id. But you can also send to a process