Subject: XMPP_OnLogin not getting called
Hi,
This is code that i am trying to use. When the open method of the XMPPClientConnection is called, the XMPP_OnLogin
event is never fired. Did download the new samples from SVN. The Sample C# version works perfectly fine, but the
Sample VB.Net version works the same way as my Application. The OnLogin Event is never fired. Have some one come
accross such a situation.
**********My Coding*************
Public Sub Connect()
xmpConn = New XmppClientConnection
xmpConn.Server = "gmail.com"
'xmpp.ConnectServer = "talk.google.com"
xmpConn.Username = "myusername@gmail.com"
xmpConn.Password = "myPassword"
xmpConn.Status = "Online"
xmpConn.SocketConnectionType = net.SocketConnectionType.Direct
xmpConn.Open()
End Sub
Private Sub xmpConn_OnLogin(ByVal sender As Object) Handles xmpConn.OnLogin
If xmpConn.Authenticated Then
MsgBox("Connected")
Else
MsgBox("Not Connected")
End If
End Sub
Do tell me if i am being wrong at any place. It would be nice if someone could share a working app.
Regards
Abishek.R.Srikaanth
This is code that i am trying to use. When the open method of the XMPPClientConnection is called, the XMPP_OnLogin
event is never fired. Did download the new samples from SVN. The Sample C# version works perfectly fine, but the
Sample VB.Net version works the same way as my Application. The OnLogin Event is never fired. Have some one come
accross such a situation.
**********My Coding*************
Public Sub Connect()
xmpConn = New XmppClientConnection
xmpConn.Server = "gmail.com"
'xmpp.ConnectServer = "talk.google.com"
xmpConn.Username = "myusername@gmail.com"
xmpConn.Password = "myPassword"
xmpConn.Status = "Online"
xmpConn.SocketConnectionType = net.SocketConnectionType.Direct
xmpConn.Open()
End Sub
Private Sub xmpConn_OnLogin(ByVal sender As Object) Handles xmpConn.OnLogin
If xmpConn.Authenticated Then
MsgBox("Connected")
Else
MsgBox("Not Connected")
End If
End Sub
Do tell me if i am being wrong at any place. It would be nice if someone could share a working app.
Regards
Abishek.R.Srikaanth