The QXmppJingleCandidate class represents a transport candidate as specified by XEP-0176: Jingle ICE-UDP Transport Method.
More...
#include <QXmppJingleIq.h>
The QXmppJingleCandidate class represents a transport candidate as specified by XEP-0176: Jingle ICE-UDP Transport Method.
§ Type
This enum is used to describe a candidate's type.
Enumerator |
---|
HostType | Host candidate, a local address/port.
|
PeerReflexiveType | Peer-reflexive candidate, the address/port as seen from the peer.
|
ServerReflexiveType | Server-reflexive candidate, the address/port as seen by the STUN server
|
RelayedType | Relayed candidate, a candidate from a TURN relay.
|
§ QXmppJingleCandidate()
Constructs a copy of other.
- Parameters
-
§ host()
QHostAddress QXmppJingleCandidate::host |
( |
| ) |
const |
Returns the candidate's host address.
§ id()
QString QXmppJingleCandidate::id |
( |
| ) |
const |
Returns the candidate's unique identifier.
§ isNull()
bool QXmppJingleCandidate::isNull |
( |
| ) |
const |
Returns true if the host address or port are empty.
§ network()
int QXmppJingleCandidate::network |
( |
| ) |
const |
Returns the network index (starting at 0) the candidate is on.
§ operator=()
Assigns the other candidate to this one.
- Parameters
-
§ port()
quint16 QXmppJingleCandidate::port |
( |
| ) |
const |
Returns the candidate's port number.
§ priority()
int QXmppJingleCandidate::priority |
( |
| ) |
const |
Returns the candidate's priority.
§ protocol()
QString QXmppJingleCandidate::protocol |
( |
| ) |
const |
Returns the candidate's protocol (e.g. "udp").
§ setComponent()
void QXmppJingleCandidate::setComponent |
( |
int |
component | ) |
|
Sets the candidates's component ID.
- Parameters
-
§ setFoundation()
void QXmppJingleCandidate::setFoundation |
( |
const QString & |
foundation | ) |
|
Sets the candidate's foundation.
- Parameters
-
§ setGeneration()
void QXmppJingleCandidate::setGeneration |
( |
int |
generation | ) |
|
Sets the candidate's generation.
- Parameters
-
§ setHost()
void QXmppJingleCandidate::setHost |
( |
const QHostAddress & |
host | ) |
|
Sets the candidate's host address.
- Parameters
-
§ setId()
void QXmppJingleCandidate::setId |
( |
const QString & |
id | ) |
|
Sets the candidate's unique identifier.
- Parameters
-
§ setNetwork()
void QXmppJingleCandidate::setNetwork |
( |
int |
network | ) |
|
Sets the network index (starting at 0) the candidate is on.
- Parameters
-
§ setPort()
void QXmppJingleCandidate::setPort |
( |
quint16 |
port | ) |
|
Sets the candidate's port number.
- Parameters
-
§ setPriority()
void QXmppJingleCandidate::setPriority |
( |
int |
priority | ) |
|
Sets the candidate's priority.
- Parameters
-
§ setProtocol()
void QXmppJingleCandidate::setProtocol |
( |
const QString & |
protocol | ) |
|
Sets the candidate's protocol (e.g. "udp").
- Parameters
-
§ setType()
Sets the candidate type (e.g. "host").
- Parameters
-
§ type()
Returns the candidate type (e.g. "host").
The documentation for this class was generated from the following files: