def __init__(self, port, receive_notify=True): """ControlPoint class constructor. @param receive_notify: if False, ignores notify messages from devices. Default value is True and it can be set during runtime @type receive_notify: boolean """ self._ssdp_server = SSDPServer("BRisa Control Point", None, receive_notify=receive_notify) # self._ssdp_server = SSDPServer("BRisa Control Point", 'sonoscp.xml', # receive_notify=receive_notify) self._ssdp_server.subscribe("new_device_event", self._new_device_event) self._ssdp_server.subscribe("removed_device_event", self._removed_device_event) #DO WE NEED THIS? WIRESHARK... # self._ssdp_server.subscribe("device_event", self._on_event) self._msearch = MSearch(self._ssdp_server, start=False) self._event_listener = EventListenerServer(self, port) self._multicast_event_listener = MulticastEventListener(self, start=False) self.event_host = self._event_listener.host() self._callbacks = {} self._known_devices = {}