引用:
原帖由 lehui99 于 2010-10-8 22:00 发表 
为了能在Windows下使用,改写成了python:
import socket
import binascii
import time
import threading
class DataReceiver:
def __init__(self, s):
self.s = s
def __call__(self):
while True ...
好同学
但:
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python26\lib\threading.py", line 525, in __bootstrap_inner
self.run()
File "C:\Python26\lib\threading.py", line 477, in run
self.__target(*self.__args, **self.__kwargs)
File "G:\gfw.py", line 11, in __call__
r = s.recvfrom(65535)[0]
error: [Errno 10022]