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
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