示例#1
0
 def write_packet(self, packet_id, *args):
     self.write(packets.pack(packet_id, *args))
示例#2
0
文件: bot.py 项目: dontgitit/pyHoNBot
 def write_packet(self,packet_id,*args):
     data = packets.pack(packet_id,*args)
     self.write(struct.pack('<H',len(data)))
     self.write(data)
示例#3
0
文件: bot.py 项目: exbit/pyHoNBot
 def write_packet(self,packet_id,*args):
     self.write(packets.pack(packet_id,*args))
示例#4
0
 def write_packet(self, packet_id, *args):
     data = packets.pack(packet_id, *args)
     self.write(struct.pack('<H', len(data)))
     self.write(data)