示例#1
0
 def send(self, ID, Data):
     pkt = packet.construct(ID, Data)
     try:
         self.connection.send(pkt)
         return True
     except:
         return False
示例#2
0
 def send(self, id_, data):
     self.socket.send(packet.construct(id_, data))