4.7. TCP/UDP

4.7.1. UDP

  • socket.SOCK_DGRAM

../../_images/udp.jpg

Figure 4.55. UDP packet

4.7.2. TCP

  • socket.SOCK_STREAM

4.7.4. Handshake

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

Figure 4.58. TCP Handshake Simple

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

Figure 4.59. TCP Handshake

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

Figure 4.60. TCP Handshake Detailed