Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
breakpoint #1
Member since Apr 2007 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: how to route messages from one user to another
Hello,

I am really new to XMPP. And I don't know how to route/send the messages to recipient.

private void streamParser_OnStreamElement(object sender, Node e)
        {
           
            Console.WriteLine("OnStreamElement: " + e.ToString());
            if (e.GetType() == typeof(Presence))
            {
                // route presences here and handle all subscription stuff
            }
            else if (e.GetType() == typeof(Message))
            {
                // route the messages here
               
            }
            else if (e.GetType() == typeof(IQ))
            {
                ProcessIQ(e as IQ);
            }
        }

As quoted above, //route the messages here, can you show me a code on how to route the message?

Thanks in advance.
Avatar
Alex #2
Member since Feb 2003 · 4288 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please use the forums search, this was discussed several times before.
If you still have questions, them come back with them
Avatar
breakpoint #3
Member since Apr 2007 · 5 posts
Group memberships: Members
Show profile · Link to this post
Thanks. I was not able to search one so I posted this one. However, I will try to search the forum again.
Avatar
Jabberer #4
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
e.g.
http://forum.ag-software.de/forum.php?req=thread&id=79
http://forum.ag-software.de/forum.php?req=thread&id=86
Software Developer
AG-Software
Avatar
breakpoint #5
Member since Apr 2007 · 5 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the links. They help a lot.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS