Posted on 2009-03-15 19:26
江边之鸟 阅读(1493)
评论(0) 编辑 收藏 引用
UDP协议相比TCP要简单许多,虽然数据无法保证完整性.
先看一下client端的演示代码:
import socket
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
port = 8000
host = '192.168.1.102'
while True:
...
文章来源:
http://riverbird.blogbus.com/logs/36597361.html