diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-13 11:21:20 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-13 11:21:20 +0000 |
| commit | f9b824dd3901b925bed2cb33ac4c4d41c4420ca9 (patch) | |
| tree | 9313a2f810e69a57d20a15fd033840c88aee880a /src | |
| parent | 4d1781ee6cad48c0327f178b7b346c39cd61f2ee (diff) | |
| download | qxmpp-f9b824dd3901b925bed2cb33ac4c4d41c4420ca9.tar.gz | |
set the default keep alive interval to a sensible value: 60 seconds
Diffstat (limited to 'src')
| -rw-r--r-- | src/QXmppConfiguration.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/QXmppConfiguration.cpp b/src/QXmppConfiguration.cpp index 79a3acc3..0abd6158 100644 --- a/src/QXmppConfiguration.cpp +++ b/src/QXmppConfiguration.cpp @@ -31,7 +31,7 @@ QXmppConfiguration::QXmppConfiguration() : m_port(5222), m_autoAcceptSubscriptions(false), m_sendIntialPresence(true), m_sendRosterRequest(true), - m_keepAliveInterval(0), + m_keepAliveInterval(60), m_keepAliveTimeout(0), m_autoReconnectionEnabled(true), m_useSASLAuthentication(true), @@ -370,7 +370,10 @@ QNetworkProxy QXmppConfiguration::networkProxy() const /// Specifies the interval in seconds at which keep alive (ping) packets /// will be sent to the server. +/// /// If set to zero, no keep alive packets will be sent. +/// +/// The default value is 60 seconds. void QXmppConfiguration::setKeepAliveInterval(int secs) { @@ -378,6 +381,8 @@ void QXmppConfiguration::setKeepAliveInterval(int secs) } /// Returns the keep alive interval in seconds. +/// +/// The default value is 60 seconds. int QXmppConfiguration::keepAliveInterval() const { |
