def METHOD_NAME(self, data, addr):
    logger.info('SSDP Packet received from {}'.format(addr))
    decoded = data.decode().replace('\r', '').split('\n')
    msgtype, decoded = decoded[0], decoded[1:]
    decodeddict = {x.split(':', 1)[0].upper(): x.split(':', 1)[1].strip(' ') for x in decoded if x != ''}
    if 'M-SEARCH' in msgtype:
        st = decodeddict.get('ST')
        if st in self.searchtargets:
            response = ['HTTP/1.1 200 OK',
                        'CACHE-CONTROL: max-age={}'.format(self.cachecontrol),
                        'ST:urn:dmtf-org:service:redfish-rest:1:{}'.format(self.minor),
                        'USN:uuid:{}::urn:dmtf-org:service:redfish-rest:1:{}'.format(self.UUID, self.minor),
                        'AL:{}'.format(self.location),
                        'EXT:']
            response.extend(('', ''))
            response = '\r\n'.join(response)
            self.sock.sendto(response.encode(), addr)
            logger.info('SSDP Packet sent to {}'.format(addr))