From 53f4f7a17675f79f5fc3bcb75f8bca7df7bdfe12 Mon Sep 17 00:00:00 2001 From: Yohan Simard Date: Fri, 12 Mar 2021 15:17:34 +0100 Subject: [PATCH] support stopServer message --- conception/th_server.txt | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/conception/th_server.txt b/conception/th_server.txt index c3e8850..1e50539 100644 --- a/conception/th_server.txt +++ b/conception/th_server.txt @@ -1,13 +1,18 @@ @startuml skinparam monochrome true start -:status = monitor.Open(); -if (status) then (failed) - :print("Unable to start server"); +while () + :status = monitor.Open(); + if (status) then (failed) + :print("Unable to start server"); + stop + else (succeed) + :monitor.AcceptClient(); + :serverOk!; + + :stopServer?; + :monitor.Close(); + endif +endwhile stop -else (succeed) - :monitor.AcceptClient(); - :serverOk!; - stop -endif @enduml