Kaydet (Commit) 9463792c authored tarafından Skip Montanaro's avatar Skip Montanaro

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

üst cb3988c4
# 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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment