service.py 文件源码

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

项目:soap4me-proxy 作者: eschava 项目源码 文件源码
def __init__(self):
        watched_status = WatchedStatus()

        api = SoapApi(watched_status)
        watched_status.soap_api = api
        api.main()

        try:
            httpd = SocketServer.TCPServer(("", KodiConfig.get_web_port()), WebHandler)
            httpd.api = api
            kodi_waiter = threading.Thread(target=self.kodi_waiter_thread, args=(httpd, watched_status,))
            kodi_waiter.start()
            httpd.serve_forever()
        except:
            message_error("Cannot create web-server, port is busy")
            xbmc.log('%s: %s' % (ADDONID, format_exc()), xbmc.LOGERROR)
            #raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号