import socket
host = ''
port = 57000
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
s.bind((host,port))
s.listen(5)
while 1:
client,addr=s.accept()
client.send("Connected to the server\n")
#if someCondition:
# cliente.close()
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
- Re: [Tutor] Question about network server in python Peter Jessop
- Re: [Tutor] Question about network server in python Kent Johnson
- Re: [Tutor] Question about network server in python Kent Johnson
