diff options
-rw-r--r-- | step-05/README.md | 26 |
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 +``` |