'Handler to call when connected'

@connect_handler.setter
def connect_handler(self, callback):

    if ((self.connect_handler is not None) or (callback is not None)):
        log.debug('Resetting    connect_handler    on    %s?', self)
    if (callback is None):
        callback = _dummy_handler
    self._custom_connect_handler = callback
