Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
bilalkhan #1
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
Subject: Connection time out
how can i catch connection time out using agsxmpp ? below is the code am using. i have stop the server but it does not through any exception.


  1. _xmppClientConnection.OnError += new ErrorHandler(OnError);
  2.  
  3.     private void OnError(object sender, Exception e)
  4.         {
  5.             string ee = e.ToString(); // i need to decide connection time out
  6.         }
This post was edited on 2016-10-28, 10:17 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
your server stop gets detected. But it can take some seconds. You should receive an OnClose event later.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS