aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-02-23 20:39:01 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2024-02-23 20:39:01 +0100
commita69dd85f9e7e14a4402df09901f2543d1831d951 (patch)
treed5633441d363594883be1cf4ddadde3c278fd234
parent34f56f81e88b12f3aedf26bc4d9d0f55788d5bf5 (diff)
downloaderlang-workshop-a69dd85f9e7e14a4402df09901f2543d1831d951.tar.gz
erlang-workshop-a69dd85f9e7e14a4402df09901f2543d1831d951.tar.bz2
erlang-workshop-a69dd85f9e7e14a4402df09901f2543d1831d951.tar.xz
erlang-workshop-a69dd85f9e7e14a4402df09901f2543d1831d951.zip
wip
-rw-r--r--step-05/README.md26
1 files changed, 26 insertions, 0 deletions
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
+```