Пример #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))
Пример #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))
Пример #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)
Пример #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)