The registered callback function will be called before connect() is called on the socket, allowing tweaking of much more than just keepalive settings. This deprecates xmpp_conn_set_keepalive(). Includes helper/example callback function to set default keepalive parameters that some library users may find useful.
Build Instructions
Compile example files with the following gcc flags:
gcc -o bot bot.c `pkg-config --cflags --libs libstrophe`