Example #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))
Example #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))
Example #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)
Example #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)