'Reads an unsigned short from the packet'

def readUnsignedShort(self):

    format = '!H'
    length = struct.calcsize(format)
    info = struct.unpack(format, self.data[self.offset:(self.offset + length)])
    self.offset += length
    return info[0]
