plebnet_plugin.py 文件源码

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

项目:PlebNet 作者: rjwvandenberg 项目源码 文件源码
def makeService(self, options):
        """
        Construct a Tribler service.
        """
        tribler_service = MultiService()
        tribler_service.setName("Market")

        manhole_namespace = {}
        if options["manhole"] > 0:
            port = options["manhole"]
            manhole = manhole_tap.makeService({
                'namespace': manhole_namespace,
                'telnetPort': 'tcp:%d:interface=127.0.0.1' % port,
                'sshPort': None,
                'passwd': os.path.join(os.path.dirname(__file__), 'passwd'),
            })
            tribler_service.addService(manhole)

        reactor.callWhenRunning(self.start_tribler, options)

        return tribler_service
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号