Dup Goto 📝

PythonNetworking

PT2/aw/lang/python python network 07-31 13:46:40
To Pop
8 lines, 44 words, 428 chars Monday 2023-07-31 13:46:40

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.