I am trying to start using agsXMPP , but I am having some problems. I am trying to run this code:
using System;
using agsXMPP;
namespace TestAgs
{
class MainClass
{
public static void Main (string[] args)
{
XmppClientConnection connection = new XmppClientConnection ();
connection.OnLogin += delegate {
Console.WriteLine ("logged in");
};
connection.Server = "gmail.com";
connection.ConnectServer = "talk.google.com";
connection.Username = "my username";
connection.Password = "my password";
connection.Open();
}
}
}
This compiles fine, but when I try to run it, nothing happens. It starts and ends without any errors, but the "login" is never printed on the console. What am I doing wrong?
If that matters, I'm using Mono 2.4 on Ubuntu 10.04.
source
share