You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some cases, when the error code or the stream_error parameters are not set.
Ex.: there is an authentication error (source file), or a socket error (source file).
In some cases the error code is set properly. Ex.: tls error (source code), connection abort error etc.
Possible solution
Create an enum with the possible error codes / events and set as the connection struct error parameter. The user application can decide how to handle the given situation.
Error argument in the connection handler is not always set and in some
cases provides meaningless values. For example, every TLS module returns
its specific error codes.
Current solution unifies error codes and allows to distinguish between
different types of disconnection.
Fixes#123.
Description
The
xmpp_conn_handler
function is notified when a connection related event occurred.There are some cases, when the error code or the stream_error parameters are not set.
Ex.: there is an authentication error (source file), or a socket error (source file).
In some cases the error code is set properly. Ex.: tls error (source code), connection abort error etc.
Possible solution
Create an enum with the possible error codes / events and set as the connection struct error parameter. The user application can decide how to handle the given situation.
Example.:
Connected issue:
#122
The text was updated successfully, but these errors were encountered: