The QXmppIceConnection class represents a set of UDP sockets capable of performing Interactive Connectivity Establishment (RFC 5245).
More...
#include <QXmppStun.h>
Public Slots |
void | close () |
| Closes the ICE connection.
|
void | connectToHost () |
| Starts ICE connectivity checks.
|
Signals |
void | connected () |
| This signal is emitted once ICE negotiation succeeds.
|
void | disconnected () |
| This signal is emitted when ICE negotiation fails.
|
void | localCandidatesChanged () |
| This signal is emitted when the list of local candidates changes.
|
void | setGauge (const QString &gauge, double value) |
| Sets the given gauge to value.
|
void | logMessage (QXmppLogger::MessageType type, const QString &msg) |
| This signal is emitted to send logging messages.
|
void | updateCounter (const QString &counter, qint64 amount=1) |
| Updates the given counter by amount.
|
Additional Inherited Members |
void | debug (const QString &message) |
void | info (const QString &message) |
void | warning (const QString &message) |
void | logReceived (const QString &message) |
void | logSent (const QString &message) |
Detailed Description
The QXmppIceConnection class represents a set of UDP sockets capable of performing Interactive Connectivity Establishment (RFC 5245).
Constructor & Destructor Documentation
QXmppIceConnection::QXmppIceConnection |
( |
QObject * |
parent = 0 | ) |
|
Constructs a new ICE connection.
- Parameters
-
Member Function Documentation
void QXmppIceConnection::addComponent |
( |
int |
component | ) |
|
Adds a component to this ICE connection, for instance 1 for RTP or 2 for RTCP.
- Parameters
-
Adds a candidate for one of the remote components.
- Parameters
-
bool QXmppIceConnection::bind |
( |
const QList< QHostAddress > & |
addresses | ) |
|
Binds the local sockets to the specified addresses.
- Parameters
-
addresses | The addresses on which to listen. |
Returns the given component of this ICE connection.
- Parameters
-
Returns the list of local HOST CANDIDATES candidates by iterating over the available network interfaces.
void QXmppIceConnection::setLocalPassword |
( |
const QString & |
password | ) |
|
Sets the local password.
You do not usually need to call this as one is automatically generated.
- Parameters
-
void QXmppIceConnection::setLocalUser |
( |
const QString & |
user | ) |
|
Sets the local user fragment.
You do not usually need to call this as one is automatically generated.
- Parameters
-
void QXmppIceConnection::setRemotePassword |
( |
const QString & |
password | ) |
|
Sets the remote password.
- Parameters
-
void QXmppIceConnection::setRemoteUser |
( |
const QString & |
user | ) |
|
Sets the remote user fragment.
- Parameters
-
void QXmppIceConnection::setStunServer |
( |
const QHostAddress & |
host, |
|
|
quint16 |
port = 3478 |
|
) |
| |
Sets the STUN server to use to determine server-reflexive addresses and ports.
- Parameters
-
host | The address of the STUN server. |
port | The port of the STUN server. |
void QXmppIceConnection::setTurnPassword |
( |
const QString & |
password | ) |
|
Sets the password used for authentication with the TURN server.
- Parameters
-
void QXmppIceConnection::setTurnServer |
( |
const QHostAddress & |
host, |
|
|
quint16 |
port = 3478 |
|
) |
| |
Sets the TURN server to use to relay packets in double-NAT configurations.
- Parameters
-
host | The address of the TURN server. |
port | The port of the TURN server. |
void QXmppIceConnection::setTurnUser |
( |
const QString & |
user | ) |
|
Sets the user used for authentication with the TURN server.
- Parameters
-
The documentation for this class was generated from the following files: