def write_packet(self, packet_id, *args): self.write(packets.pack(packet_id, *args))
def write_packet(self,packet_id,*args): data = packets.pack(packet_id,*args) self.write(struct.pack('<H',len(data))) self.write(data)
def write_packet(self,packet_id,*args): self.write(packets.pack(packet_id,*args))
def write_packet(self, packet_id, *args): data = packets.pack(packet_id, *args) self.write(struct.pack('<H', len(data))) self.write(data)