Subject: windows mobile - events not firing nor is my status getting updated.
//Windows Mobile 5.0 - 6.0 // Compact framework 2.0 VS2008
//Events subscribing to
xmppCon.OnError += new ErrorHandler(xmppCon_OnError);
xmppCon.OnAuthError += new XmppElementHandler(xmppCon_OnAuthError);
xmppCon.OnIq += new agsXMPP.protocol.client.IqHandler(xmppCon_OnIq);
xmppCon.OnMessage += new agsXMPP.protocol.client.MessageHandler(xmppCon_OnMessage);
xmppCon.OnLogin += new ObjectHandler(xmppCon_OnLogin);
xmppCon.KeepAlive = true;
//Here is my Login Code
btnLogin.Enabled = false;
Jid jidUser = new Jid(txtUserName.Text + "@gmail.com");
xmppCon.Username = jidUser.User;
xmppCon.Server = "gmail.com";
xmppCon.ConnectServer = "talk.google.com";
xmppCon.Priority = 10;
xmppCon.Port = 5223; //It hangs when I use 5222
xmppCon.AutoRoster = true;
xmppCon.AutoPresence = true;
xmppCon.Password = txtPassword.Text;
xmppCon.UseCompression = true;
xmppCon.AutoResolveConnectServer = false;
xmppCon.SocketConnectionType = agsXMPP.net.SocketConnectionType.Direct;
xmppCon.UseStartTLS = false;
xmppCon.Open();
//Send Status Code
string nodeStr = string.Format("<iq type='set' ><query xmlns='google:shared-status' status-min-ver='1'><status>{0}</status><show>default</show><invisible value='false' /></query></iq>", status);
xmppCon.Send(nodeStr);
thank You
//Events subscribing to
xmppCon.OnError += new ErrorHandler(xmppCon_OnError);
xmppCon.OnAuthError += new XmppElementHandler(xmppCon_OnAuthError);
xmppCon.OnIq += new agsXMPP.protocol.client.IqHandler(xmppCon_OnIq);
xmppCon.OnMessage += new agsXMPP.protocol.client.MessageHandler(xmppCon_OnMessage);
xmppCon.OnLogin += new ObjectHandler(xmppCon_OnLogin);
xmppCon.KeepAlive = true;
//Here is my Login Code
btnLogin.Enabled = false;
Jid jidUser = new Jid(txtUserName.Text + "@gmail.com");
xmppCon.Username = jidUser.User;
xmppCon.Server = "gmail.com";
xmppCon.ConnectServer = "talk.google.com";
xmppCon.Priority = 10;
xmppCon.Port = 5223; //It hangs when I use 5222
xmppCon.AutoRoster = true;
xmppCon.AutoPresence = true;
xmppCon.Password = txtPassword.Text;
xmppCon.UseCompression = true;
xmppCon.AutoResolveConnectServer = false;
xmppCon.SocketConnectionType = agsXMPP.net.SocketConnectionType.Direct;
xmppCon.UseStartTLS = false;
xmppCon.Open();
//Send Status Code
string nodeStr = string.Format("<iq type='set' ><query xmlns='google:shared-status' status-min-ver='1'><status>{0}</status><show>default</show><invisible value='false' /></query></iq>", status);
xmppCon.Send(nodeStr);
thank You