server.py 文件源码

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

项目:py-abci 作者: davebryson 项目源码 文件源码
def __init__(self, port=46658, app=None):
        if not app or not isinstance(app, BaseApplication):
            log.error("Application missing or not an instance of Base Application")
            raise TypeError("Application missing or not an instance of Base Application")

        self.port = port
        self.protocol = ProtocolHandler(app)
        self.server = StreamServer(('0.0.0.0', port), handle=self.__handle_connection)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号