Use XMPP Ping (XEP-0199) instead of white space ping for keep alive. [#15]
Use XMPP Ping (XEP-0199) instead of white space ping for keep alive. [#15]

This patch introduces the use of XMPP Pings (defined in XEP-0199) for pinging
the server instead of just sending white space messages to keep the connection
alive through NAT routers.

It also adds the feature of disconnecting if three pings in a row are sent
unanswered.

[#15 tagged:committed responsible:Hallski state:resolved]

tuxad-loudmouth/loudmouth,tuxad-loudmouth/loudmouth,tyll/loudmouth,mcabber/loudmouth,mhallendal/loudmouth,tyll/loudmouth,mhallendal/loudmouth,mcabber/loudmouth