Exemplo n.º 1
0
def start_threaded_server(port):
    protected = ("/protected.html",)
    server = webserver.get_server('', port, get_file_path(), False, protected)
    thread = threading.Thread(target=server.serve_forever)
    thread.start()
    return server, thread
Exemplo n.º 2
0
def start_threaded_server(port):
    protected = ("/protected.html", )
    server = webserver.get_server('', port, get_file_path(), False, protected)
    thread = threading.Thread(target=server.serve_forever)
    thread.start()
    return server, thread
Exemplo n.º 3
0
 def start_webserver(self):
     if not self.webserver:
         self.webserver = get_server(self)
         self.webserver_thread = Thread(target=self.webserver.serve_forever)
         self.webserver_thread.start()