def start_test_server(protocol=TestServer): config = Config() config.add_service('', 40002, Factory.forProtocol(protocol)) config.start_logger(level=logging.DEBUG) server = MainLoop(config) server.start()
def start_server_loop(cls, port): config = Config() config.add_service('', port, Factory.forProtocol(ReturnFixedMessage)) config.start_logger(target=cls.server_logfile, level=logging.DEBUG) server = MainLoop(config) server.start()
def start_only_telnet(): config = Config() config.start_logger(level=logging.DEBUG) server = MainLoop(config) server.start()
def start(self): self.start_protocol_factories() config = Config() config.add_service('', self._port, self._wallp_server_factory) pipe = config.add_pipe(self._wp_change_message_factory) config.set_logger(log) config.start_logger(level=logging.DEBUG) config.do_after_start(self.after_start, pipe) self._server = Server(config) self._server.start()