摘要: from socket import *HOST = 'localhost'BUFSIZE = 1024PORT = 21567def client_socket(): ADDR = (HOST, PORT) tcpclisock = socket(AF_INET, SOCK_STREAM) tcpclisock.connect(ADDR) while True: data = raw_input('>') if not data: break tcpclisock.send(data) da... 阅读全文
posted @ 2012-05-31 17:31 Yuangui 阅读(200) 评论(0) 推荐(0) 编辑