support stopServer message
This commit is contained in:
parent
9f2bbe5bdf
commit
53f4f7a176
1 changed files with 13 additions and 8 deletions
|
@ -1,13 +1,18 @@
|
||||||
@startuml
|
@startuml
|
||||||
skinparam monochrome true
|
skinparam monochrome true
|
||||||
start
|
start
|
||||||
:status = monitor.Open();
|
while ()
|
||||||
if (status) then (failed)
|
:status = monitor.Open();
|
||||||
|
if (status) then (failed)
|
||||||
:print("Unable to start server");
|
:print("Unable to start server");
|
||||||
stop
|
stop
|
||||||
else (succeed)
|
else (succeed)
|
||||||
:monitor.AcceptClient();
|
:monitor.AcceptClient();
|
||||||
:serverOk!;
|
:serverOk!;
|
||||||
stop
|
|
||||||
endif
|
:stopServer?;
|
||||||
|
:monitor.Close();
|
||||||
|
endif
|
||||||
|
endwhile
|
||||||
|
stop
|
||||||
@enduml
|
@enduml
|
||||||
|
|
Loading…
Reference in a new issue