erichocean / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Relogin #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there a way to relogin if I receive an error that disconnect me? (this 
happen when the application reaches STATE_CLOSED)

Original issue reported on code.google.com by diego.cd...@gmail.com on 1 Feb 2011 at 7:08

GoogleCodeExporter commented 9 years ago
i think just do login again.

Original comment by greatfoolbear on 2 Feb 2011 at 2:00

GoogleCodeExporter commented 9 years ago
But the application ends if it reaches STATE_CLOSED, doesn't it? 
ps: greatfoolbear, could you answer my last comment on issue 128. thanks

Original comment by diego.cd...@gmail.com on 2 Feb 2011 at 4:17

GoogleCodeExporter commented 9 years ago
yes.

Original comment by greatfoolbear on 2 Feb 2011 at 4:43

GoogleCodeExporter commented 9 years ago
You do need to create a new XmppSocket for each login, because after reaches 
STATE_CLOSED, the XmppSocket gets destroyed and reset back to NULL. I think 
this is why you were seeing the crash.
The following is the right way of doing this:
<in the call_main.cc file>
  pump.DoLogin(xcs, new XmppSocket(true), NULL);
  pump.DoDisconnect();
  pump.DoLogin(xcs, new XmppSocket(true), NULL);

Original comment by jun...@google.com on 24 Feb 2011 at 8:34

GoogleCodeExporter commented 9 years ago
How can i get notification when connection closed?
And I heard that problem is solved out of libjingle.
Could you give some code snippet for reconnect problem?
Thank you.

Original comment by adam1988...@gmail.com on 20 Jan 2012 at 9:11