Python Socket Programming create a server socket and client socket I/O multiplexing You can read in my blog.