##// END OF EJS Templates

File last commit:

r53:54
r53:54
Show More
client.py
17 lines | 348 B | text/x-python | PythonLexer
r52 import socket
r53
#host = "localhost"
host = "192.168.1.117"
#host = "192.168.1.100"
r52 s = socket.socket()
r53 s.connect((host, 5500))
r52
while True:
mensaje = raw_input("> ")
s.send(mensaje)
if mensaje == "quit":
break
r53 recibido = s.recv(1024)
print "Recibido:", recibido
r52 print "adios"
s.close()