html5 - websocket为什么只需一次握手
PHP中文网
PHP中文网 2017-04-17 14:29:03
0
3
639

为什么不需要二次三次握手的确认呢

PHP中文网
PHP中文网

认证0级讲师

reply all(3)
大家讲道理

In the end, the tcp protocol was adopted, or the three-way handshake

http and websocket protocols are application layer protocols based on the transport layer tcp protocol

大家讲道理

WebSocket is based on TCP, and the TCP handshake and the WebSocket handshake are at different levels.

The TCP handshake is used to ensure the establishment of the link. The WebSocket handshake tells the server that this is a WebSocket link after the TCP link is established. The server must handle this TCP link according to the WebSocket protocol.

阿神

Websocket is an application layer protocol, no different from SSL, HTTP, and FTP. TCP is a transport layer protocol that guarantees how data is transmitted. You should look at the network’s seven-layer protocol

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!