The first parameter of the Listen function is the socket type, the function is to establish a listener on the socket handle, as to whether there is a client connection in, it is necessary to accept the function to check, the first parameter of the Accept function is the socket type, With the Listen function is the same socket handle, so the general accept is placed in a thread in a non-stop call, because we do not know when there will be a client connection in.
Listen's socket object is likened to a railway station
Accept the socket object to understand the passengers who need to receive
If you want to receive passengers, first to the station to wait (that is, listen listening socket object)
If the passenger arrives, it is necessary to check the entrance of the waiting passengers (that is, accept the socket object to check if there is a new connection).
Understanding of Listen function in network programming in Python