Example #1
0
 def send_pdu(self, pdu):
     self.pdu_queue.put({
         'direction': 'outbound',
         'pdu': pdu.get_obj(),
     })
     return SmscServer.send_pdu(self, pdu)
Example #2
0
 def handle_data(self, data):
     self.pdu_queue.put({
         'direction': 'inbound',
         'pdu': unpack_pdu(data),
     })
     return SmscServer.handle_data(self, data)
Example #3
0
 def __init__(self, delivery_report_string=None):
     self.pdu_queue = DeferredQueue()
     SmscServer.__init__(self, delivery_report_string)
Example #4
0
 def send_pdu(self, pdu):
     self.pdu_queue.put({
             'direction': 'outbound',
             'pdu': pdu.get_obj(),
             })
     return SmscServer.send_pdu(self, pdu)
Example #5
0
 def handle_data(self, data):
     self.pdu_queue.put({
             'direction': 'inbound',
             'pdu': unpack_pdu(data),
             })
     return SmscServer.handle_data(self, data)
Example #6
0
 def __init__(self, delivery_report_string=None):
     self.pdu_queue = DeferredQueue()
     SmscServer.__init__(self, delivery_report_string)