tornadowrapper.py 文件源码

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

项目:django-tornado-websockets 作者: Kocal 项目源码 文件源码
def listen(cls, tornado_port):
        """
            Start the Tornado HTTP server on given port.

            :param tornado_port: Port to listen
            :type tornado_port: int
            :return: None

            .. todo:: Add support for HTTPS server.
        """

        if not cls.app:
            raise TypeError('Tornado application was not instantiated, call TornadoWrapper.start_app method.')

        cls.server = tornado.httpserver.HTTPServer(cls.app)
        cls.server.listen(tornado_port)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号