3.7. TCP/UDP

3.7.1. UDP

  • socket.SOCK_DGRAM

../../_images/udp.jpg

Figure 3.29. UDP packet

3.7.2. TCP

  • socket.SOCK_STREAM

3.7.4. Handshake

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

Figure 3.32. TCP Handshake Simple

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

Figure 3.33. TCP Handshake

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

Figure 3.34. TCP Handshake Detailed