 sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM) try:     sock.connect(('localhost',00000)) except socket.error:     print('connection error')     sys.exit(0) n=0 while n<=00:    #connect once     sock.send('c0:{0}'.format(n))     result=sock.recv(0000)     print(result)         n+=0     time.sleep(0) sock.close()  