Cari
1 buku memuat "socket error code"
Python: Echo UDP Server
… sys.stdin: line = sys.stdin.readline() if line == '\n': running = False try: client.sendto(line,(host,port)) except socket.error, (code,message): print "Error: socket broken: " + message break sys.stdout.write('%') sys.stdout.flush() # close socket s.close …