def __init__(self, loop, abort_on_found, device_ip, protocol, semaphore):
self.loop = loop<EOL>self.abort_on_found = abort_on_found<EOL>self.device_ip = None if not device_ip else ip_address(device_ip)<EOL>self.protocol = protocol<EOL>self.semaphore = semaphore<EOL>self.found_devices = {}<EOL>self.lock = Lock()<EOL>
Initialize a new _ServiceListener.