QXmpp Version: 1.11.0
|
The QXmppIceComponent class represents a piece of a media stream requiring a single transport address, as defined by RFC 5245 (Interactive Connectivity Establishment). More...
#include <QXmppStun.h>
Public Slots | |
void | close () |
void | connectToHost () |
qint64 | sendDatagram (const QByteArray &datagram) |
Signals | |
void | connected () |
This signal is emitted once ICE negotiation succeeds. | |
void | datagramReceived (const QByteArray &datagram) |
This signal is emitted when a data packet is received. | |
void | gatheringStateChanged () |
This signal is emitted when the gathering state of local candidates changes. | |
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. | |
Public Member Functions | |
~QXmppIceComponent () override | |
int | component () const |
bool | isConnected () const |
QList< QXmppJingleCandidate > | localCandidates () const |
![]() | |
QXmppLoggable (QObject *parent=nullptr) | |
Static Public Member Functions | |
static QList< QHostAddress > | discoverAddresses () |
static QList< QUdpSocket * > | reservePorts (const QList< QHostAddress > &addresses, int count, QObject *parent=nullptr) |
Friends | |
class | QXmppIceComponentPrivate |
class | QXmppIceConnection |
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) |
The QXmppIceComponent class represents a piece of a media stream requiring a single transport address, as defined by RFC 5245 (Interactive Connectivity Establishment).
|
override |
Destroys the QXmppIceComponent.
|
slot |
Stops ICE connectivity checks and closes the underlying sockets.
int QXmppIceComponent::component | ( | ) | const |
Returns the component id for the current socket, e.g. 1 for RTP and 2 for RTCP.
|
slot |
Starts ICE connectivity checks.
|
static |
Returns the list of local network addresses.
bool QXmppIceComponent::isConnected | ( | ) | const |
Returns true if ICE negotiation completed, false otherwise.
QList< QXmppJingleCandidate > QXmppIceComponent::localCandidates | ( | ) | const |
Returns the list of local candidates.
|
static |
Tries to bind count UDP sockets on each of the given addresses.
The port numbers are chosen so that they are consecutive, starting at an even port. This makes them suitable for RTP/RTCP sockets pairs.
addresses | The network address on which to bind the sockets. |
count | The number of ports to reserve. |
parent | The parent object for the sockets. |
|
slot |
Sends a data packet to the remote party.
datagram |