INET Framework for OMNeT++/OMNEST
RTCPByePacket Class Reference

#include <RTCPPacket.h>

Inheritance diagram for RTCPByePacket:
RTCPPacket

List of all members.

Public Member Functions

 RTCPByePacket (const char *name=NULL)
 RTCPByePacket (const RTCPByePacket &rtcpByePacket)
virtual ~RTCPByePacket ()
RTCPByePacketoperator= (const RTCPByePacket &rtcpByePacket)
virtual RTCPByePacketdup () const
virtual uint32 getSSRC ()
virtual void setSSRC (uint32 ssrc)

Protected Attributes

uint32 _ssrc

Detailed Description

An RTCPByePacket is used to indicate that an rtp endsystem has left the session. This implementation offers less functionality than described in the rfc: Only one ssrc identifier can be stored in it and the reason for leaving isn't transmitted.


Constructor & Destructor Documentation

RTCPByePacket::RTCPByePacket ( const char *  name = NULL)

Default constructor.

Referenced by dup().

                                             : RTCPPacket(name) {
    _packetType = RTCP_PT_BYE;
    _count = 1;
    _ssrc = 0;
    // space for the ssrc identifier
    addByteLength(4);
};
RTCPByePacket::RTCPByePacket ( const RTCPByePacket rtcpByePacket)

Copy constructor.

                                                               : RTCPPacket() {
    setName(rtcpByePacket.getName());
    operator=(rtcpByePacket);
};
RTCPByePacket::~RTCPByePacket ( ) [virtual]

Destructor.

                              {

};

Member Function Documentation

RTCPByePacket * RTCPByePacket::dup ( ) const [virtual]

Duplicates the RTCPByePacket by calling the copy constructor.

Reimplemented from RTCPPacket.

                                        {
    return new RTCPByePacket(*this);
};
uint32 RTCPByePacket::getSSRC ( ) [virtual]

Returns the ssrc identifier.

Referenced by RTCP::processIncomingRTCPPacket().

                              {
    return _ssrc;
};
RTCPByePacket & RTCPByePacket::operator= ( const RTCPByePacket rtcpByePacket)

Assignment operator.

Referenced by RTCPByePacket().

                                                                          {
    RTCPPacket::operator=(rtcpByePacket);
    _ssrc = rtcpByePacket._ssrc;
    return *this;
};
void RTCPByePacket::setSSRC ( uint32  ssrc) [virtual]

Sets the ssrc identifier.

Referenced by RTCP::createPacket().

                                       {
    _ssrc = ssrc;
};

Member Data Documentation

uint32 RTCPByePacket::_ssrc [protected]

The ssrc identifier.

Referenced by getSSRC(), operator=(), RTCPByePacket(), and setSSRC().


The documentation for this class was generated from the following files: