7. TCP/UDP

7.1. UDP

  • socket.SOCK_DGRAM

../_images/udp.jpg

Figure 53. UDP packet

7.2. TCP

  • socket.SOCK_STREAM

7.2.2. Handshake

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

Figure 56. TCP Handshake Simple

../_images/tcp-handshake.png

Figure 57. TCP Handshake

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

Figure 58. TCP Handshake Detailed