http://www.cnblogs.com/hazir/p/python_socket_programming.html http://rookiedong.iteye.com/blog/1185403