summaryrefslogtreecommitdiff
path: root/test_send.py
blob: ef9a99c83bdfa01a4c43ca7b6776a569cd877f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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)