tags: #python #network PythonSocket[s] EchoServer[e] MultiThreadedTcpServer[m] ClipboardServer[c] AsyncUdpReceive[u] PingExample1 ## Constants The `socket.getaddrinfo()` function has an optional parameter, `family`, that defaults to `0`. Constants `socket.AF_INET` and `socket.AF_INET6` have type `socket.AddressFamily`, whereas `0` has type `int`. If you require something of type `socket.AddressFamily` corresponding to `0`, use `socket.AF_UNSPEC`.