def shutdown(self, callback=None):

        if self.socket:
            self._reader = None
            if callback:
                self._close_callback = callback
            if self._wb:
                self._write_callback = self.close
            else:
                self.close()
        return self
Check that an ip address is in valid_networks.
dataset/ETHPy150Open HenryHu/pybbs/xmpp/readstream.py/ReadStream.shutdown--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/vmruntime/meta_app.py/MetaWSGIApp._CheckIsValidAddress