Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
Oneleg #1
Member since Sep 2012 · 4 posts · Location: Ostersund, SWEDEN
Group memberships: Members
Show profile · Link to this post
Subject: What eventhandlers to use when logging in synchronously?
Hi,

I'm trying to make a wrapper for the XmppClient so I can make synchronous Open and Close methods.

The thought is to start the Open command and wait fo a flag to be set. This flag is set when the event OnLogin occurs. Then we can proceed and say that the client is logged in.

But what if OnLogin doesn't occur? I'd like to catch all errors that can occur and throw exceptions.

What other events can occur during login that I should look for?
OnAuthError and OnError I already figured could occur.

/Robert
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Oneleg:
What other events can occur during login that I should look for?
OnAuthError and OnError I already figured could occur.

OnStreamError
OnXmlError
OnClose

Alex
Avatar
Oneleg #3
Member since Sep 2012 · 4 posts · Location: Ostersund, SWEDEN
Group memberships: Members
Show profile · Link to this post
Thanks for the fast answer.. now I'm wondering if I have to make a synchronous Close also? If that's the case, which events can occur then?

/Robert
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: