Http,Https,socket,websocket,TCP,UDP

Http

What is http?

HTTP (HyperText Transfer Protocol) Hypertext Transfer Protocol

http used to do?

When a resource in the customer input URL address, access server, the content displayed on the web browser. Using the HTTP protocol as a standard, from the client to the server to complete a series of operational processes.

Http operational processes of?

http What are the characteristics?

1. stateless protocol.

http protocol itself does not request and the communication status between the response stored. Means that the client to the server had a http request, then wanted to know what the request, the server is not saved, the request before did not know what.

2. get and post the difference

 

What is https?

 HTTPS stands for Hypertext Transfer Protocol Secure. Https.

What is the relationship between http and https?

http protocol to transmit the content in the clear, does not provide data encryption. To address this shortcoming http, based on http joined ssl protocol, relying on the certificate to verify the identity of the server, and for the communication between the browser and the server is encrypted.

In simple terms https is secure http version.

 

What is a socket?

A socket is a socket abstraction layer. Transport layer connection has two ends, the socket end is called socket. According to RFC793 definition: IP address port number splicing constitutes socket.

The so-called socket, is a communication endpoint, each socket has a socket number, such as ip is 210.37.145.1, the port number is 23, then the socket is 210.37.145.1:23.

 

 What is websocket?

websocket protocol is a full duplex communication over a single TCP connection.

websocket only need to complete a handshake between the browser and the server, both will be able to directly create a persistent connection, and two-way data transmission.

 

The difference between the socket and websocket?

socket network programming concepts are abstracted.

websocket is the application layer protocol.

 

 What is tcp?

传输控制协议(TCP,Transmission Control Protocol)是一种面向连接的、可靠的、基于字节流的传输层通信协议,由IETF的RFC 793 [1] 定义。

 

什么是udp?

用户数据报协议(UDP,User Datagram Protocol)。UDP 为应用程序提供了一种无需建立连接就可以发送封装的 IP 数据报的方法。RFC 768 [1] 描述了 UDP。

 

tcp和udp的区别?

 


 

 

Guess you like

Origin www.cnblogs.com/gamedaybyday/p/11363247.html