As discussed in the tutorials on building a web server and a web client, Python's
socketmodule is the bedrock of Python network programming. Every module that needs a socket for communication relies on it. Consequently, it is a good idea to have detailed explanations of its functions and classes close to hand. Recently, I posted a comprehensive discussion of each part of the
socketmodule. Each part can be found in both the Modules and Networking sections.