Three elements of network programming agreement

Three elements of network programming agreement

Protocol: data exchange rule is established in a computer network, a set of standards or conventions.

  • UDP (can be likened to send text messages, I give you a text message, you can not boot, this number may not be present)
    • Connectionless-oriented, unsafe data, speed. Does not distinguish between the client and the server.
  • TCP
    • Connection-oriented (three-way handshake), data security, speed slightly lower. Divided into client and server.
    • Three-way handshake: The client initiates with your service request, the server responds to the request, transmitted data.
Published 354 original articles · won praise 11 · views 60000 +

Guess you like

Origin blog.csdn.net/LeoZuosj/article/details/104236484