3.7. TCP/UDP

3.7.1. UDP

  • socket.SOCK_DGRAM

../../_images/udp.jpg

Figure 61. UDP packet

3.7.2. TCP

  • socket.SOCK_STREAM

3.7.2.2. Handshake

../../_images/tcp-handshake-simple.jpg

Figure 64. TCP Handshake Simple

../../_images/tcp-handshake.png

Figure 65. TCP Handshake

../../_images/tcp-handshake-detailed.png

Figure 66. TCP Handshake Detailed