def connection(self, handler=None): """Deprecated: use connection_to_host() instead """ impl = _chandler(handler, self.on_error_delegate()) result = Connection.wrap(pn_reactor_connection(self._impl, impl)) if impl: pn_decref(impl) return result
def connection(self, handler=None): """Deprecated: use connection_to_host() instead """ impl = _chandler(handler, self.on_error) result = Connection.wrap(pn_reactor_connection(self._impl, impl)) if impl: pn_decref(impl) return result
def connection(self, handler=None): impl = _chandler(handler, self.on_error) result = Connection.wrap(pn_reactor_connection(self._impl, impl)) pn_decref(impl) return result