python TCP客户端服务端通信
//客户端代码
from socket import *
HOST = '10.1.16.149'
PORT = 9993
BUFSIZ = 1024
ADDR = (HOST, PORT)
tcpCliSock = socket(AF_INET, SOCK_STREAM)
tcpCliSock.connect(ADDR)
while True:
data = "heloo tes
原创
2017-01-06 09:33:18 ·
330 阅读 ·
0 评论