Ejemplo n.º 1
0
 def send_STP0_message_to_client(self, command, msg):
     """send a message to the client"""
     if connections_waiting:
         connections_waiting.pop(0).return_scope_message_STP_0(
                 (command, msg), self)
     else:
         scope_messages.append((command, msg))
Ejemplo n.º 2
0
 def send_STP0_message_to_client(self, command, msg):
     """send a message to the client"""
     if connections_waiting:
         connections_waiting.pop(0).return_scope_message_STP_0(
             (command, msg), self)
     else:
         scope_messages.append((command, msg))
Ejemplo n.º 3
0
 def handle_stp1_msg_default(self, msg):
     if connections_waiting:
         connections_waiting.pop(0).return_scope_message_STP_1(msg, self)
     else:
         scope_messages.append(msg)
Ejemplo n.º 4
0
 def handle_stp1_msg_default(self, msg):
     if connections_waiting:
         connections_waiting.pop(0).return_scope_message_STP_1(msg, self)
     else:
         scope_messages.append(msg)