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