Exemplo n.º 1
0
    def checkout(self, socket):
        #for socket in self.sockets:
        #    socket.write(steps[-1].to_string())
        print("checkout")
        print(self.active_user)
        print(self.active_socket)
        print(socket)

        if self.active_socket is socket:
            print("is")
            message = socket.readLine().data().decode()
            step = Step()
            step.from_string(message)
            self.process(step)
        """
Exemplo n.º 2
0
 def update_data(self):
     message = self.socket.readLine().data().decode()
     print("update data", message)
     new_step = Step()
     new_step.from_string(message)
     self.step = new_step