Posted on 2009-03-15 19:26
江邊之鳥(niǎo) 閱讀(1513)
評(píng)論(0) 編輯 收藏 引用
UDP協(xié)議相比TCP要簡(jiǎn)單許多,雖然數(shù)據(jù)無(wú)法保證完整性.
先看一下client端的演示代碼:
import socket
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
port = 8000
host = '192.168.1.102'
while True:
...
文章來(lái)源:
http://riverbird.blogbus.com/logs/36597361.html