Exemple #1
0
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()
Exemple #2
0
	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()
Exemple #3
0
def start_only_telnet():
	config = Config()
	config.start_logger(level=logging.DEBUG)

	server = MainLoop(config)
	server.start()
Exemple #4
0
    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()