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.
Build Instructions
Compile example files with the following gcc flags:
gcc -o bot bot.c `pkg-config --cflags --libs libstrophe`