Wednesday 8 February 2023

PlantUML: Divide the diagram into logical steps

Using ==, we can separate the diagram into several logical steps.

 

splitDiagram.txt

@startuml

title SSL communication

==Share public keys==
client -> server: Client Hello
client <- server: Server send its public key
client -> server: Cient send its public key

== Cipher exchange ==
client <- server: Server send cipher

== Data transfer and connection close ==
client <-> server: Data exchange
client -> server: Close the connection


@enduml

 

Above snippet generate below diagram.

 


  

Previous                                                    Next                                                    Home

No comments:

Post a Comment