def __init__(self):
self.qrt = qtm.QRT("127.0.0.1", 22223)
self.qrt.connect(on_connect=self.on_connect, on_disconnect=self.on_disconnect, on_event=self.on_event)
self.init = False
self.connection = None
# Inline callbacks is a feature of the twisted framework that makes it possible to write
# asynchronous code that looks synchronous
# http://twistedmatrix.com/documents/current/api/twisted.internet.defer.inlineCallbacks.html
评论列表
文章目录