protocol.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:p2p-network 作者: PeARSearch 项目源码 文件源码
def stopProtocol(self):
        """ Called when the transport is disconnected.

        Will only be called once, after all ports are disconnected.
        """
        for key in self._callLaterList.keys():
            try:
                if key > time.time():
                    self._callLaterList[key].cancel()
            except Exception, e:
                print e
            del self._callLaterList[key]
            #TODO: test: do we really need the reactor.iterate() call?
            reactor.iterate()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号