import socket client socket socket client connect localhost 9090 clien

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import socket
client = socket.socket()
client.connect(('localhost', 9090))
client.send('e')
client.recv(1024)
client.send('ars@mail.ru 123132.ru dfgdfg.com rerere@yandex.ru')
print client.recv(1024)
client.send('c')
client.recv(1024)
client.send("Pie lie die, Dendi, Fear, artstyle")
print client.recv(1024)
client.close()