Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 cObject * dup () const
virtual const char * className () const
virtual u_int32 ssrc ()
virtual void setSSRC (u_int32 ssrc)

Protected Attributes

u_int32 _ssrc


Constructor & Destructor Documentation

RTCPByePacket::RTCPByePacket const char *  name = NULL  ) 
 

Default constructor.

00372                                              : RTCPPacket(name) {
00373     _packetType = RTCP_PT_BYE;
00374     _count = 1;
00375     _ssrc = 0;
00376     // space for the ssrc identifier
00377     addLength(4);
00378 };

RTCPByePacket::RTCPByePacket const RTCPByePacket rtcpByePacket  ) 
 

Copy constructor.

00381                                                                : RTCPPacket() {
00382     setName(rtcpByePacket.name());
00383     operator=(rtcpByePacket);
00384 };

RTCPByePacket::~RTCPByePacket  )  [virtual]
 

Destructor.

00387                               {
00388 
00389 };


Member Function Documentation

const char * RTCPByePacket::className  )  const [virtual]
 

Returns the class name "RTCPByePacket".

Reimplemented from RTCPPacket.

00404                                            {
00405     return "RTCPByePacket";
00406 };

cObject * RTCPByePacket::dup  )  const [virtual]
 

Duplicates the RTCPByePacket by calling the copy constructor.

Reimplemented from RTCPPacket.

00399                                   {
00400     return new RTCPByePacket(*this);
00401 };

RTCPByePacket & RTCPByePacket::operator= const RTCPByePacket rtcpByePacket  ) 
 

Assignment operator.

00392                                                                           {
00393     RTCPPacket::operator=(rtcpByePacket);
00394     _ssrc = rtcpByePacket._ssrc;
00395     return *this;
00396 };

void RTCPByePacket::setSSRC u_int32  ssrc  )  [virtual]
 

Sets the ssrc identifier.

00414                                         {
00415     _ssrc = ssrc;
00416 };

u_int32 RTCPByePacket::ssrc  )  [virtual]
 

Returns the ssrc identifier.

00409                             {
00410     return _ssrc;
00411 };


Member Data Documentation

u_int32 RTCPByePacket::_ssrc [protected]
 

The ssrc identifier.


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 18:22:29 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.0