jabber.connection.ConferenceManager.Stream_OnProtocol C# (CSharp) Method

Stream_OnProtocol() private method

private Stream_OnProtocol ( object sender, System rp ) : void
sender object
rp System
return void
        private void Stream_OnProtocol(object sender, System.Xml.XmlElement rp)
        {
            if (OnInvite == null)
                return;

            Message msg = rp as Message;
            if (msg == null)
                return;
            /*
            <message
            from='[email protected]'
            to='[email protected]'>
              <x xmlns='http://jabber.org/protocol/muc#user'>
            <invite from='[email protected]/desktop'>
              <reason>
            Hey Hecate, this is the place for all good witches!
              </reason>
            </invite>
            <password>cauldronburn</password>
              </x>
            </message>
             */
            UserX x = msg["x", URI.MUC_USER] as UserX;
            if (x == null)
                return;

            Invite inv = x["invite", URI.MUC_USER] as Invite;
            if (inv == null)
                return;

            Room r = GetRoom(msg.From);
            OnInvite(r, msg);
        }