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