def FeaturesHandler(self,conn,feats):
        if not feats.getTag('bind',namespace=NS_BIND):
            self.bound='failure'
            self.DEBUG('Server does not requested binding.','error')
            return
        if feats.getTag('session',namespace=NS_SESSION): self.session=1
        else: self.session=-1
        self.bound=[]
Determine if server supports resource binding and set some internal attributes accordingly.
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/auth.py/ComponentBind.FeaturesHandler