2012-07-20から1日間の記事一覧
Circusからファイルディスクリプタが渡されるのでsocket.fromfdを使えばいいらしい。 Python Pythonのバージョンは2.7.2。 myserver.py # coding: utf-8 import sys import socket import logging import select content = """HTTP/1.0 200 OK Content-Type:…
Circusからファイルディスクリプタが渡されるのでsocket.fromfdを使えばいいらしい。 Python Pythonのバージョンは2.7.2。 myserver.py # coding: utf-8 import sys import socket import logging import select content = """HTTP/1.0 200 OK Content-Type:…