What type of diagram is used to indicate client / server socket programming?

I developed a couple of interactive socket-based web applications with my team, but it was always painful for me to document conditional data flow.

I used a sequence diagram like these Sequence diagram example

Is this the best way to document socket programming? Is there any UML standard for socket programming?

+4
source share
3 answers

Edit: This is not a UML diagram, but a simple presentation.

To create a connection-oriented socket, for server programs and client programs it is necessary to use separate function sequences, so you can present your socket connection as:

Socket.io

+4

SD , ( ). .

, , , . /. , , .

Sample

, , . , , . Server Client, Socket (, , MailSocket, OP), / . , . () () . ( ), Server Server , (, , ). Client computer/Client. , Mail Client computer Server.

, , , . / ( - ) UML. UML - . . . , . . .

+2

Have you considered using a UML protocol state machine to display a conditional data stream? See http://www.uml-diagrams.org/protocol-state-machine-diagrams.html#protocol-state-machine .

0
source

All Articles