aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppStun.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-12-09 15:51:49 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-12-09 15:51:49 +0000
commita0c132858ebe2962ccb7de1c008c2fc0e10d3614 (patch)
treeb799e0ecc423467279f5a7d1676e6fd437d933c3 /src/QXmppStun.h
parent4fcdb188810f9bd37953daad1b80b93f5b1cb463 (diff)
downloadqxmpp-a0c132858ebe2962ccb7de1c008c2fc0e10d3614.tar.gz
* improve QXmppIceComponent/QXmppIceConnection code documentation
* start STUN checks as soon as bind() is called
Diffstat (limited to 'src/QXmppStun.h')
-rw-r--r--src/QXmppStun.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/QXmppStun.h b/src/QXmppStun.h
index 71081b26..40cb87a7 100644
--- a/src/QXmppStun.h
+++ b/src/QXmppStun.h
@@ -145,16 +145,17 @@ public slots:
private slots:
void checkCandidates();
+ void checkStun();
void readyRead();
signals:
- // This signal is emitted once ICE negotiation succeeds.
+ /// \brief This signal is emitted once ICE negotiation succeeds.
void connected();
- // This signal is emitted when a data packet is received.
+ /// \brief This signal is emitted when a data packet is received.
void datagramReceived(const QByteArray &datagram);
- // This signal is emitted when the list of local candidates changes.
+ /// \brief This signal is emitted when the list of local candidates changes.
void localCandidatesChanged();
private:
@@ -191,14 +192,15 @@ private:
QTimer *m_timer;
// STUN server
- bool m_stunDone;
QByteArray m_stunId;
QHostAddress m_stunHost;
quint16 m_stunPort;
+ QTimer *m_stunTimer;
+ int m_stunTries;
};
-/// \brief The QXmppIceConnection class represents an UDP socket capable
-/// of performing Interactive Connectivity Establishment (RFC 5245).
+/// \brief The QXmppIceConnection class represents a set of UDP sockets
+/// capable of performing Interactive Connectivity Establishment (RFC 5245).
///
class QXmppIceConnection : public QXmppLoggable