'Initialize the class.'

def __init__(self, host_ip_addr, listen_port, upnp_bind_multicast, advertise_ip, advertise_port):

    threading.Thread.__init__(self)
    self.host_ip_addr = host_ip_addr
    self.listen_port = listen_port
    self.upnp_bind_multicast = upnp_bind_multicast
    resp_template = 'HTTP/1.1    200    OK\nCACHE-CONTROL:    max-age=60\nEXT:\nLOCATION:    http://{0}:{1}/description.xml\nSERVER:    FreeRTOS/6.0.5,    UPnP/1.0,    IpBridge/0.1\nhue-bridgeid:    1234\nST:    urn:schemas-upnp-org:device:basic:1\nUSN:    uuid:Socket-1_0-221438K0100073::urn:schemas-upnp-org:device:basic:1\n\n'
    self.upnp_response = resp_template.format(advertise_ip, advertise_port).replace('\n', '\r\n').encode('utf-8')
    (self._interrupted_read_pipe, self._interrupted_write_pipe) = os.pipe()
