From a69dd85f9e7e14a4402df09901f2543d1831d951 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 23 Feb 2024 20:39:01 +0100 Subject: wip --- step-05/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/step-05/README.md b/step-05/README.md index bc5f6ed..026df8f 100644 --- a/step-05/README.md +++ b/step-05/README.md @@ -62,3 +62,29 @@ On the server you will notice this output: Both the server and client uses `self/0` to find their own PID and you see that the server has the PID `0.95.0` and the client has `0.85.0`. When the server receives the message the client pid is slightly different: `14771.88.0`, and the same for the client's reply from the server. + +After the server receives 10 messages, it will terminate itself: + +``` +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +<0.95.0>: Got ping req from: <14771.88.0> +ping finished +(es@biwia)4> +``` + +If the client sends another message, it will time out: + +``` +(node2@biwia)14> echo_client:send_ping(es@biwia). +Sending echo to es@biwia, self=<0.88.0> +timeout +ok +``` -- cgit v1.2.3