摘要: 对于所有的web应用,本质上其实就是一个socket服务端,用户的浏览器其实就是一个socket客户端。 一个简单的web程序: #!/usr/bin/env python #coding:utf-8 import socket def handle_request(client): buf = client.recv(1024) client.send("HTT... 阅读全文
posted @ 2016-05-12 17:20 binges 阅读(1501) 评论(0) 推荐(0) 编辑