(24 . 15)(24 . 15)
87 return None
88
89 def send(self, signed_packet_bytes):
90 if self.get_key() != None:
91 if self.get_key() != None and self.address != None and self.port != None:
92 try:
93 self.socket.sendto(signed_packet_bytes, (self.address, self.port))
94 logging.debug("[%s:%d] <- %s" % (self.address,
95 self.port,
96 int(self.port),
97 binascii.hexlify(signed_packet_bytes)[0:16]))
98
99 except Exception as ex:
100 stack = traceback.format_exc()
101 logging.debug(stack)
102 else:
103 logging.debug("Discarding message to unknown handle or handle with no key: %s" % message.handle)
104 logging.debug("Discarding message to unknown handle or handle with no key: %s" % self.handles[0])