Subject: Minimal required connection code to conect with Openfire server
I'm trying to connect to my local openfire server with all the default configurations. I'm not getting any errors and things are printing to my event log as expected. HOWEVER, on my openfire server the user is not online as expected. I know there is alot of extra code but I wanted to make sure all the settings are correct. What can I cut to minimalize it and what is preventing me from getting my openfire user online?
Here is my code:
Thanks in advance for the help!
Here is my code:
- public void login()
- {
- try
- {
- client.Username = username;
- client.XmppDomain ="jabber.server.de";
- client.Password= password;
- client.Hostname= "jabber.server.de";
- client.Port = 5222;
- client.Priority = 100;
- //client.Transport = Matrix.Net.Transport.BOSH;
- client.Status = "Working!";
- //client.Show= Matrix.Xmpp.Show.chat;
- client.AutoPresence = false;
- client.Priority = 1;
- client.Status = "online";
- client.Show = Matrix.Xmpp.Show.NONE;
- client.ProxyType = Matrix.Net.Proxy.ProxyType.None;
- Logger.log(client.Username + "\n" + client.Password + "\n" + client.XmppDomain);
- // client.OnLogin += new EventHandler<Matrix.EventArgs>(xmppClient_onLogin);
- // client.OnSendXml += new EventHandler<Matrix.TextEventArgs>(xmppClient_OnSendXml);
- client.Open();
- }
- catch (Exception e)
- {
- Logger.log(e.ToString());
- }
- }
This post was edited on 2013-05-13, 22:32 by Alex.