摘要: import os import socketimport threadingimport SocketServerSERVER_HOST = 'localhost'SERVER_PORT = 0 #tells the kernel to pick up a port dynamicallyBUF_... 阅读全文
posted @ 2015-08-15 21:30 arhatlohan 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Exception happened during processing of request from ('127.0.0.1', 65066)Traceback (most recent call last): File "C:\Python27\lib\SocketServer.py", l... 阅读全文
posted @ 2015-08-15 21:29 arhatlohan 阅读(2640) 评论(0) 推荐(0) 编辑
摘要: Server:import socketimport sysimport argparsehost = 'localhost'data_payload = 2048backlog = 5def echo_server(port): '''A simple echo server''' #Create... 阅读全文
posted @ 2015-08-15 20:13 arhatlohan 阅读(439) 评论(0) 推荐(0) 编辑