3.7. TCP/UDP

3.7.1. UDP

  • socket.SOCK_DGRAM

../../_images/udp.jpg

Figure 3.31. UDP packet

3.7.2. TCP

  • socket.SOCK_STREAM

3.7.4. Handshake

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

Figure 3.34. TCP Handshake Simple

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

Figure 3.35. TCP Handshake

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

Figure 3.36. TCP Handshake Detailed