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)
评论列表
文章目录