Subject: send Messages
I am trying to create a XMPP Server. I use as base the example server. But i have some problems with the following things.
one client send Messages but the other client don't resave the Message.
this is Server Code:
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
there please help me !!!
}
else if (e.GetType() == typeof(Message))
{
// route the messages here
there please help me !!!
}
else if (e.GetType() == typeof(IQ))
{
ProcessIQ(e as IQ);
}
}
please give me server example thank you!
my email: shumi@126.com
one client send Messages but the other client don't resave the Message.
this is Server Code:
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
there please help me !!!
}
else if (e.GetType() == typeof(Message))
{
// route the messages here
there please help me !!!
}
else if (e.GetType() == typeof(IQ))
{
ProcessIQ(e as IQ);
}
}
please give me server example thank you!
my email: shumi@126.com
This post was edited on 2006-09-20, 11:52 by netlm.