To be a good citizen, it should really delete its socket when done.

This commit is contained in:
Skip Montanaro 2003-08-01 14:20:02 +00:00
parent cb3988c48b
commit 9463792c68

View file

@ -1,5 +1,6 @@
# Echo server demo using Unix sockets (handles one connection only)
# Piet van Oostrum
import os
from socket import *
FILE = 'blabla'
s = socket(AF_UNIX, SOCK_STREAM)
@ -13,3 +14,4 @@ while 1:
if not data: break
conn.send(data)
conn.close()
os.unlink(FILE)