Exemple #1
0
 def run(self):
     """Block and start listening for connections from clients. An
     interrupt (^C) closes the server.
     """
     self.startup_time = time.time()
     bluelet.run(
         bluelet.server(self.host, self.port, Connection.handler(self)))
Exemple #2
0
 def run(self):
     """Block and start listening for connections from clients. An
     interrupt (^C) closes the server.
     """
     self.startup_time = time.time()
     bluelet.run(bluelet.server(self.host, self.port,
                                Connection.handler(self)))