From 4337604e325c7e912db40f145f5493106f3d6a85 Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Fri, 22 Feb 2013 17:46:11 +0100 Subject: Add info about UTF-8 encoding of nodename --- erts/doc/src/erl_dist_protocol.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'erts/doc') diff --git a/erts/doc/src/erl_dist_protocol.xml b/erts/doc/src/erl_dist_protocol.xml index 4cff4956a2..84f4be208d 100644 --- a/erts/doc/src/erl_dist_protocol.xml +++ b/erts/doc/src/erl_dist_protocol.xml @@ -162,11 +162,12 @@ By default EPMD listens on port 4369. Nlen - The length of the NodeName. + The length (in bytes) of the NodeName field. NodeName - The NodeName as a string of length Nlen. + The NodeName as an UTF-8 encoded string of + Nlen bytes. Elen @@ -322,7 +323,7 @@ If Result > 0, the packet only consists of [119, Result]. NodeInfo is, as expressed in Erlang:

- io:format("name ~s at port ~p~n", [NodeName, Port]). + io:format("name ~ts at port ~p~n", [NodeName, Port]). @@ -362,14 +363,14 @@ If Result > 0, the packet only consists of [119, Result]. NodeInfo is, as expressed in Erlang:

- io:format("active name ~s at port ~p, fd = ~p ~n", + io:format("active name ~ts at port ~p, fd = ~p ~n", [NodeName, Port, Fd]).

or

- io:format("old/unused name ~s at port ~p, fd = ~p~n", + io:format("old/unused name ~ts at port ~p, fd = ~p~n", [NodeName, Port, Fd]). @@ -640,7 +641,7 @@ If Result > 0, the packet only consists of [119, Result]. $ERL_TOP/lib/kernel/include/dist.hrl. (32 bit big endian) Name0 ... NameN is the full nodename of A, as a string of bytes (the - packet length denotes how long it is). + packet length denotes how long it is).

3) recv_status/send_status

B sends a status message to A, which indicates -- cgit v1.2.3