QXmpp  Version:0.9.3
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Friends
QXmppIceComponent Class Reference

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>

Inheritance diagram for QXmppIceComponent:
QXmppLoggable

List of all members.

Public Slots

void close ()
 Stops ICE connectivity checks and closes the underlying sockets.
void connectToHost ()
 Starts ICE connectivity checks.
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 ()
void localCandidatesChanged ()
 This signal is emitted when the list of local candidates changes.

Public Member Functions

 ~QXmppIceComponent ()
 Destroys the QXmppIceComponent.
int component () const
bool isConnected () const
 Returns true if ICE negotiation completed, false otherwise.
QList< QXmppJingleCandidatelocalCandidates () const
 Returns the list of local candidates.

Static Public Member Functions

static QList< QHostAddress > discoverAddresses ()
 Returns the list of local network addresses.
static QList< QUdpSocket * > reservePorts (const QList< QHostAddress > &addresses, int count, QObject *parent=0)

Friends

class QXmppIceComponentPrivate
class QXmppIceConnection

Detailed Description

The QXmppIceComponent class represents a piece of a media stream requiring a single transport address, as defined by RFC 5245 (Interactive Connectivity Establishment).


Member Function Documentation

Returns the component id for the current socket, e.g. 1 for RTP and 2 for RTCP.

QList< QUdpSocket * > QXmppIceComponent::reservePorts ( const QList< QHostAddress > &  addresses,
int  count,
QObject *  parent = 0 
) [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.

Parameters:
addressesThe network address on which to bind the sockets.
countThe number of ports to reserve.
parentThe parent object for the sockets.
qint64 QXmppIceComponent::sendDatagram ( const QByteArray &  datagram) [slot]

Sends a data packet to the remote party.

Parameters:
datagram

The documentation for this class was generated from the following files:
 All Classes Functions Enumerations Enumerator Properties