Store keepalive parameters in conn object. This allows call the function with a disconnected conn. Also, the parameters are not cleared on reconnect and applied once a socket is created.
Build Instructions
Compile example files with the following gcc flags:
gcc -o bot bot.c `pkg-config --cflags --libs libstrophe`