UML Sequence diagram show how a datagram packet is sent with
DatagramPacket and DatagramSocket classes.
