Subject: How to send a message in C#?
I'm a new in C# & agsXMPP
so after read the homepage instruction
I try to send a message using agsXMPP
I start the openfire and login in spark as a receiver
Here is my console app as sender(they both subscribed )
then I enter the debug mode try to figure it out,
sometimes the receiver pop up the "Helllo,how are you"
sometimes not,I was confused...
Help~!
so after read the homepage instruction
I try to send a message using agsXMPP
I start the openfire and login in spark as a receiver
Here is my console app as sender(they both subscribed )
namespace Test
{
using agsXMPP;
using agsXMPP.protocol.client;
class Program
{
static void Main(string[] args)
{
XmppClientConnection xmpp = new XmppClientConnection("louis");
xmpp.Open("mini", "mini");
Message msg = new Message("spark@louis", MessageType.chat, "Hello, how are you?");
xmpp.Send(msg);
xmpp.Close();
}
}
}
but when I run the console app,the receiver didn't show anything,why this happened?{
using agsXMPP;
using agsXMPP.protocol.client;
class Program
{
static void Main(string[] args)
{
XmppClientConnection xmpp = new XmppClientConnection("louis");
xmpp.Open("mini", "mini");
Message msg = new Message("spark@louis", MessageType.chat, "Hello, how are you?");
xmpp.Send(msg);
xmpp.Close();
}
}
}
then I enter the debug mode try to figure it out,
sometimes the receiver pop up the "Helllo,how are you"
sometimes not,I was confused...
Help~!