title: Is there a difference between TCP and UNIX socket?
body: <p>For TCP socket, many client could connect it and send data and close.
  But for UNIX socket, if client close the socket, server side will also close. Is it?</p>
  
  <p>But in my opinion, TCP also has STOP state....</p>
  
  <p>This is my python UNIX socket code:</p>
  
  <pre><code>sock_file = "%s_%d.sock" % (sock_name, port)
  sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
  sock.bind(sock_file)
  sock.listen(1)
  </code></pre>