2.7. TCP/UDP

2.7.1. UDP

  • socket.SOCK_DGRAM

../../_images/udp.jpg

Figure 58. UDP packet

2.7.2. TCP

  • socket.SOCK_STREAM

2.7.2.2. Handshake

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

Figure 61. TCP Handshake Simple

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

Figure 62. TCP Handshake

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

Figure 63. TCP Handshake Detailed