RTP Audio System  2.0.0
rtcppacket.h File Reference
#include "tdsystem.h"
#include "rtppacket.h"
#include "rtcppacket.icc"

Go to the source code of this file.

Classes

struct  RTCPCommonHeader
 RTCP Common Header. More...
struct  RTCPSenderInfoBlock
 RTCP Sender Info Block. More...
struct  RTCPReceptionReportBlock
 RTCP Reception Report Block. More...
struct  RTCPReport
 RTCP Report. More...
struct  RTCPSenderReport
 RTCP Sender Report. More...
struct  RTCPReceiverReport
 RTCP Sender Report. More...
struct  RTCPSourceDescriptionItem
 RTCP Source Description Item. More...
struct  RTCPSourceDescriptionChunk
 RTCP Source Description Chunk. More...
struct  RTCPSourceDescription
 RTCP Source Description (SDES) More...
struct  RTCPBye
 RTCP BYE Message. More...
struct  RTCPApp
 RTCP APP Message. More...

Enumerations

enum  RTCP_Type {
  RTCP_SR = 200, RTCP_RR = 201, RTCP_SDES = 202, RTCP_BYE = 203,
  RTCP_APP = 204
}
enum  RTCP_SDES_Type {
  RTCP_SDES_END = 0, RTCP_SDES_CNAME = 1, RTCP_SDES_NAME = 2, RTCP_SDES_EMAIL = 3,
  RTCP_SDES_PHONE = 4, RTCP_SDES_LOC = 5, RTCP_SDES_TOOL = 6, RTCP_SDES_NOTE = 7,
  RTCP_SDES_PRIV = 8
}

Functions

struct RTCPCommonHeader __attribute__ ((packed))
 RTCPCommonHeader ()
card8 getVersion () const
card8 getPadding () const
card8 getCount () const
card8 getPacketType () const
card16 getLength () const
void setVersion (const card8 version)
void setPadding (const card8 padding)
void setCount (const card8 count)
void setPacketType (const card8 packetType)
void setLength (const card16 length)
 RTCPSenderInfoBlock ()
card64 getNTPTimeStamp () const
card32 getRTPTimeStamp () const
card32 getPacketsSent () const
card32 getOctetsSent () const
void setNTPTimeStamp (const card64 timeStamp)
void setRTPTimeStamp (const card32 timeStamp)
void setPacketsSent (const card32 packets)
void setOctetsSent (const card32 octets)
 RTCPReceptionReportBlock ()
 RTCPReceptionReportBlock (const card32 ssrc)
void init (const card32 ssrc)
card32 getSSRC () const
double getFractionLost () const
card32 getPacketsLost () const
card32 getLastSeqNum () const
card32 getJitter () const
card32 getLSR () const
card32 getDLSR () const
void setSSRC (card32 ssrc)
void setFractionLost (const double fraction)
void setPacketsLost (const card32 packetsLost)
void setLastSeqNum (const card32 lastSeq)
void setJitter (const card32 jitter)
void setLSR (const card32 lsr)
void setDLSR (const card32 dlsr)
 RTCPReport ()
 RTCPSenderReport ()
 RTCPSenderReport (const card32 syncSource, const card8 count=0)
void init (const card32 syncSource, const card8 count=0)
 RTCPReceiverReport ()
 RTCPReceiverReport (const card32 syncSource, const card8 count=0)
 RTCPSourceDescription ()
 RTCPSourceDescription (const card8 count)
void init (const card8 count)
 RTCPBye ()
 RTCPBye (const card8 count)
card32 getSource (const cardinal index) const
void setSource (const cardinal index, const card32 source)
 RTCPApp ()
 RTCPApp (const card8 subtype)
card32 getSource () const
char * getName ()
char * getData ()
void setSource (const card32 source)
void setName (const char *name)

Variables

card8 V
card8 P
card8 C
card8 PT
card16 Length
card32 NTP_MostSignificant
card32 NTP_LeastSignificant
card32 RTPTimeStamp
card32 PacketsSent
card32 OctetsSent
card32 SSRC
card32 Fraction
card32 Lost
card32 LastSeq
card32 Jitter
card32 LSR
card32 DLSR
RTCPReceptionReportBlock rr []
card8 Type
char Data []
card32 SRC
RTCPSourceDescriptionItem Item []
RTCPSourceDescriptionChunk Chunk [1]
card32 Source []
char Name [4]

Enumeration Type Documentation

Definition of RTCP SDES message types.

Enumerator:
RTCP_SDES_END 
RTCP_SDES_CNAME 
RTCP_SDES_NAME 
RTCP_SDES_EMAIL 
RTCP_SDES_PHONE 
RTCP_SDES_LOC 
RTCP_SDES_TOOL 
RTCP_SDES_NOTE 
RTCP_SDES_PRIV 
enum RTCP_Type

Definition of RTCP message types.

Enumerator:
RTCP_SR 
RTCP_RR 
RTCP_SDES 
RTCP_BYE 
RTCP_APP 

Function Documentation

struct RTCPCommonHeader __attribute__ ( (packed)  )
card8 __attribute__::getCount ( ) const [inline]

Get count.

Returns:
RTCP count.
char* __attribute__::getData ( ) [inline]

Get pointer to data field.

Returns:
Pointer to data field.
card32 __attribute__::getDLSR ( ) const [inline]

Get DLSR.

Returns:
DLSR.
double __attribute__::getFractionLost ( ) const [inline]

Get fraction lost.

Returns:
Fraction lost.
card32 __attribute__::getJitter ( ) const [inline]

Get jitter.

Returns:
Jitter.

Get last sequence number.

Returns:
Last sequence number.
card16 __attribute__::getLength ( ) const [inline]

Get length.

Returns:
RTCP Length.
card32 __attribute__::getLSR ( ) const [inline]

Get LSR.

Returns:
LSR.
char* __attribute__::getName ( ) [inline]

Get pointer to name field.

Returns:
Pointer to name field.

Get NTP timestamp.

Returns:
NTP timestamp.

Get octets sent.

Returns:
Octets sent.

Get packets lost.

Returns:
Packets lost.

Get packets sent.

Returns:
Packets sent.
card8 __attribute__::getPacketType ( ) const [inline]

Get packet type.

Returns:
RTCP packet type.
card8 __attribute__::getPadding ( ) const [inline]

Get padding.

Returns:
RTCP padding.

Get RTP time stamp.

Returns:
RTP time stamp.
card32 __attribute__::getSource ( const cardinal  index) const [inline]

Get source at given index.

Parameters:
indexIndex.
Returns:
Source.
card32 __attribute__::getSource ( ) const [inline]

Get source.

Returns:
Source.
card32 getSSRC ( ) const [inline]

Get SSRC.

Returns:
SSRC.
card8 __attribute__::getVersion ( ) const [inline]

Get version.

Returns:
RTCP version.
void __attribute__::init ( const card32  ssrc)

Initialize.

Parameters:
ssrcSSRC.
void init ( const card32  syncSource,
const card8  count = 0 
)

Initialize.

Parameters:
syncSourceSSRC.
countCount.
void init ( const card8  count)

Initialize.

Parameters:
Countcount.

Constructor.

__attribute__::RTCPApp ( const card8  subtype)

Constructor.

Parameters:
subtypeRTCP APP subtype.

Constructor.

__attribute__::RTCPBye ( const card8  count)

Constructor.

Parameters:
Countcount.
__attribute__::RTCPReceiverReport ( const card32  syncSource,
const card8  count = 0 
)

Constructor.

Parameters:
syncSourceSSRC.
countCount.

Constructor.

Parameters:
ssrcSSRC.

Constructor.

__attribute__::RTCPSenderReport ( const card32  syncSource,
const card8  count = 0 
)

Constructor.

Parameters:
syncSourceSSRC.
countCount.

Constructor.

Parameters:
Countcount.
void __attribute__::setCount ( const card8  count) [inline]

Set count.

Parameters:
countRTCP count.
void __attribute__::setDLSR ( const card32  dlsr) [inline]

Set DLSR.

Parameters:
dlsrDLSR.
void __attribute__::setFractionLost ( const double  fraction) [inline]

Set fraction lost.

Parameters:
fractionFraction lost.
void __attribute__::setJitter ( const card32  jitter) [inline]

Set jitter.

Returns:
jitter Jitter.
void __attribute__::setLastSeqNum ( const card32  lastSeq) [inline]

Set last sequence number.

Parameters:
lastSeqLast sequence number.
void __attribute__::setLength ( const card16  length) [inline]

Set length.

Parameters:
lengthRTCP Length.
void __attribute__::setLSR ( const card32  lsr) [inline]

Set LSR.

Parameters:
lsrLSR.
void __attribute__::setName ( const char *  name) [inline]

Set name.

Returns:
Pointer to name field.
void __attribute__::setNTPTimeStamp ( const card64  timeStamp) [inline]

Set NTP timestamp.

Parameters:
timeStampNTP timestamp.
void __attribute__::setOctetsSent ( const card32  octets) [inline]

Set octets sent.

Parameters:
octetsOctets sent.
void __attribute__::setPacketsLost ( const card32  packetsLost) [inline]

Set packets lost.

Parameters:
packetsLostPackets lost.
void __attribute__::setPacketsSent ( const card32  packets) [inline]

Set packets sent.

Parameters:
packetsPackets sent.
void __attribute__::setPacketType ( const card8  packetType) [inline]

Set packetType.

Parameters:
packetTypeRTCP packet Type.
void __attribute__::setPadding ( const card8  padding) [inline]

Set padding.

Parameters:
paddingRTCP padding.
void __attribute__::setRTPTimeStamp ( const card32  timeStamp) [inline]

Set RTP time stamp.

Parameters:
timeStampRTP timestamp.
void __attribute__::setSource ( const cardinal  index,
const card32  source 
) [inline]

Set source at given index.

Parameters:
indexIndex.
sourceSource.
void __attribute__::setSource ( const card32  source) [inline]

Set source.

Parameters:
sourceSource.
void setSSRC ( card32  ssrc) [inline]

Set SSRC.

Parameters:
ssrcSSRC.
void __attribute__::setVersion ( const card8  version) [inline]

Set version.

Parameters:
versionRTCP version.

Variable Documentation

Array of SDES chunks.

char Data[]

Item data.

Array of SDES items.

Length in bytes.

char Name[4]

Array of RTCPReceptionReportBlocks

SSRC/CSRC Identifier of source.

Item type (RTCP_SDES_...).

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines