[ create a new paste ] login | about

Link: http://codepad.org/adyCit9T    [ raw code | fork ]

Python, pasted on Jan 16:
1
2
3
4
5
6
7
8
9
10
HOST = '192.168.7.2' # Change this based on what was acquired by the Card
PORT = 800         
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
    mystr= raw_input("input string: ")
    s.connect((HOST, PORT))
    s.settimeout(2.0) 
    s.send(mystr+'\0')
finally:
    s.close()


Create a new paste based on this one


Comments: