'Register handlers for receiving incoming datastreams. Used internally.'

def plugin(self, owner):

    self._owner.RegisterHandlerOnce('iq', self.StreamOpenReplyHandler)
    self._owner.RegisterHandler('iq', self.IqHandler, ns=NS_IBB)
    self._owner.RegisterHandler('message', self.ReceiveHandler, ns=NS_IBB)
