#!/usr/bin/python import socket s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(('localhost',9999)) def test(n): s.send(''.join(map(str,xrange(n)))[:n]) while True: n = int(raw_input('n?>')) test(n+34)