4.7. TCP/UDP

4.7.1. UDP

  • socket.SOCK_DGRAM

../../_images/udp.jpg

Figure 4.51. UDP packet

4.7.2. TCP

  • socket.SOCK_STREAM

4.7.4. Handshake

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

Figure 4.54. TCP Handshake Simple

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

Figure 4.55. TCP Handshake

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

Figure 4.56. TCP Handshake Detailed