RTCPByePacket Class Reference

#include <RTCPPacket.h>

Inheritance diagram for RTCPByePacket:

RTCPPacket

List of all members.


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.

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

Constructor & Destructor Documentation

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

Default constructor.

Referenced by dup().

00349                                              : RTCPPacket(name) {
00350     _packetType = RTCP_PT_BYE;
00351     _count = 1;
00352     _ssrc = 0;
00353     // space for the ssrc identifier
00354     addByteLength(4);
00355 };

RTCPByePacket::RTCPByePacket ( const RTCPByePacket rtcpByePacket  ) 

Copy constructor.

00358                                                                : RTCPPacket() {
00359     setName(rtcpByePacket.getName());
00360     operator=(rtcpByePacket);
00361 };

RTCPByePacket::~RTCPByePacket (  )  [virtual]

Destructor.

00364                               {
00365 
00366 };


Member Function Documentation

RTCPByePacket & RTCPByePacket::operator= ( const RTCPByePacket rtcpByePacket  ) 

Assignment operator.

Referenced by RTCPByePacket().

00369                                                                           {
00370     RTCPPacket::operator=(rtcpByePacket);
00371     _ssrc = rtcpByePacket._ssrc;
00372     return *this;
00373 };

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

Duplicates the RTCPByePacket by calling the copy constructor.

Reimplemented from RTCPPacket.

00376                                         {
00377     return new RTCPByePacket(*this);
00378 };

uint32 RTCPByePacket::getSSRC (  )  [virtual]

Returns the ssrc identifier.

Referenced by RTCP::processIncomingRTCPPacket().

00381                               {
00382     return _ssrc;
00383 };

void RTCPByePacket::setSSRC ( uint32  ssrc  )  [virtual]

Sets the ssrc identifier.

Referenced by RTCP::createPacket().

00386                                        {
00387     _ssrc = ssrc;
00388 };


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:

Generated on Fri Mar 20 18:51:20 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5