(self)
Starts the server (blocking). Use :meth:`close` to stop
Starts the server (blocking). Use :meth:`close` to stop
Starts the server ( blocking ) . Use : meth : close to stop
def start(self):
        """Starts the server (blocking). Use :meth:`close` to stop"""
        self.listener.listen(self.backlog)
        self.logger.info("server started on [%s]:%s", self.host, self.port)
        self.active = True
        if self.auto_register:
            t = threading.Thread(target = self._bg_register)
            t.setDaemon(True)
            t.start()
        try:
            while self.active:
                self.accept()
        except EOFError:
            pass # server closed by another thread
        except KeyboardInterrupt:
            print("")
            self.logger.warn("keyboard interrupt!")
        finally:
            self.logger.info("server has terminated")
            self.close()
def start ( self ) : self . listener . listen ( self . backlog ) self . logger . info ( "server started on [%s]:%s" , self . host , self . port ) self . active = True if self . auto_register : t = threading . Thread ( target = self . _bg_register ) t . setDaemon ( True ) t . start ( ) try : while self . active : self . accept ( ) except EOFError : pass # server closed by another thread except KeyboardInterrupt : print ( "" ) self . logger . warn ( "keyboard interrupt!" ) finally : self . logger . info ( "server has terminated" ) self . close ( )