PythonでUNIXドメインソケットを使ってみたメモ。ついでにプロキシ。 server.py import os import socket SOCK_FILENAME = '/tmp/my_unix_socket' content = 'HTTP/1.0 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 12\r\n\r\nHello world!' def main(): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.bind(SOCK_FILENAME) s.listen(1) try: while True: conn, addr = s.accept() print '---connected---' try: while True: data = con