[erlang-questions] Send Port around distributed Erlang nodes

Raimo Niskanen raimo+erlang-questions@REDACTED
Fri Jun 7 15:10:31 CEST 2013

On Thu, Jun 06, 2013 at 08:34:18PM +0800, "Siyao Zheng(郑思遥)" wrote:
> Hi all,
> It is possible to send a port id to other node, but the receiving node can't operate on this port by the received port id. According to the spec of erlang:send/2, in order to send message to this port, the port must be registered with a name, but messages can be send to remote <pid> directly. Is it an intended design ? Do you think it is necessary to allow the following scene be possible: node A listens on a socket S, sends S to node B, and B accepts this S? Is there any considerations about this ability?

That must be a documentation oversight.

You can not send to a remote port. When sending to a remotely registered
name it is only process names that are looked up on the remote node.

> Cheers
> Siyao Zheng
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions


/ Raimo Niskanen, Erlang/OTP, Ericsson AB

More information about the erlang-questions mailing list