예제 #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)