python-Network Programming-01

Source: Internet
Author: User

We often say that the computer network communication, it is worth two, or more than one computer, for data transmission.

Since the development of computer network, people use a lot of protocols, but the most commonly used is the TCP/IP protocol, which is actually a set of protocols.

Of course, when using Python for network programming, we usually program on the TCP/IP protocol. That is, we don't need to care, TCP/IP layer True Transport layer protocol

"1" socket

Usually we can understand the socket--to identify a process above the remote host.

What process does the operating system have to handle when our client requests that it is sent to the server's network port?

This is the problem that the socket solves.

In the same way, we go to the building to find a company, usually there will be xx building a few 0 several floors.

Socket in the server perspective, is actually a file (unix/linux), accurately speaking, is a file descriptor (usually refers to the file, live similar to the file entity)

The operation of the socket, in fact, is very similar to the operation of the file, such as recv () and read ()

python-Network Programming-01

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.