Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

RTPPacket Class Reference

#include <RTPPacket.h>

List of all members.

Public Member Functions

 RTPPacket (const char *name=NULL)
 RTPPacket (const RTPPacket &packet)
virtual ~RTPPacket ()
RTPPacketoperator= (const RTPPacket &packet)
virtual cObject * dup () const
virtual const char * className () const
virtual void info (char *buf)
virtual void writeContents (ostream &os)
virtual int marker ()
virtual void setMarker (int marker)
virtual int payloadType ()
virtual void setPayloadType (int payloadType)
virtual u_int16 sequenceNumber ()
virtual void setSequenceNumber (u_int16 sequenceNumber)
virtual u_int32 timeStamp ()
virtual void setTimeStamp (u_int32 timeStamp)
virtual u_int32 ssrc ()
virtual void setSSRC (u_int32 ssrc)
virtual int headerLength ()
virtual int payloadLength ()

Static Public Member Functions

static int fixedHeaderLength ()
static int compareFunction (cObject *packet1, cObject *packet2)

Protected Attributes

int _version
int _padding
int _extension
int _csrcCount
int _marker
int _payloadType
u_int16 _sequenceNumber
u_int32 _timeStamp
u_int32 _ssrc


Detailed Description

This class represents an rtp data packet. Real data can either be encapsulated or simulated by adding length. Following rtp header fields exist but aren't used: padding, extension, csrcCount. The csrcList can't be used because csrcCount is always 0.


Constructor & Destructor Documentation

RTPPacket::RTPPacket const char *  name = NULL  ) 
 

Default constructor.

RTPPacket::RTPPacket const RTPPacket packet  ) 
 

Copy constructor.

RTPPacket::~RTPPacket  )  [virtual]
 

Destructor.


Member Function Documentation

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

Returns the class name "RTPPacket".

int RTPPacket::compareFunction cObject *  packet1,
cObject *  packet2
[static]
 

Compares two RTPPacket objects by comparing their sequence numbers.

cObject * RTPPacket::dup  )  const [virtual]
 

Duplicates the RTPPacket by calling the copy constructor.

int RTPPacket::fixedHeaderLength  )  [static]
 

Returns the length of the fixed header of an RTPPacket.

int RTPPacket::headerLength  )  [virtual]
 

Returns the length of the header (fixed plus variable part) of this RTPPacket.

void RTPPacket::info char *  buf  )  [virtual]
 

Writes a one line info about this RTPPacket into the given string.

int RTPPacket::marker  )  [virtual]
 

Returns the value of the marker bit in this RTPPacket.

RTPPacket & RTPPacket::operator= const RTPPacket packet  ) 
 

Assignment operator.

int RTPPacket::payloadLength  )  [virtual]
 

Returns the size of the payload stored in this RTPPacket.

int RTPPacket::payloadType  )  [virtual]
 

Returns the payload type of this RTPPacket.

u_int16 RTPPacket::sequenceNumber  )  [virtual]
 

Returns the sequence number of this RTPPacket.

void RTPPacket::setMarker int  marker  )  [virtual]
 

Sets the value of the marker bit in this RTPPacket.

void RTPPacket::setPayloadType int  payloadType  )  [virtual]
 

Sets the payload type of this RTPPacket.

void RTPPacket::setSequenceNumber u_int16  sequenceNumber  )  [virtual]
 

Sets the sequence number of this RTPPacket.

void RTPPacket::setSSRC u_int32  ssrc  )  [virtual]
 

Sets the ssrc identifier of this RTPPacket.

void RTPPacket::setTimeStamp u_int32  timeStamp  )  [virtual]
 

Sets the rtp time stamp of this RTPPacket.

u_int32 RTPPacket::ssrc  )  [virtual]
 

Returns the ssrc identifier of this RTPPacket.

u_int32 RTPPacket::timeStamp  )  [virtual]
 

Returns the rtp time stamp of this RTPPacket.

void RTPPacket::writeContents ostream &  os  )  [virtual]
 

Writes a longer description about this RTPPacket into the given stream.


Member Data Documentation

int RTPPacket::_csrcCount [protected]
 

Stores the number (0..31) of contributing sources for this RTPPacket. It is always 0 because contributing sources are added by rtp mixers which aren't implemented.

int RTPPacket::_extension [protected]
 

Set to 1, if this RTPPacket contains an rtp header extension, 0 otherwise. This implementation doesn't support rtp header extensions, so it is always 0.

int RTPPacket::_marker [protected]
 

The marker of this RTPPacket.

int RTPPacket::_padding [protected]
 

Set to 1 if padding is used in this RTPPacket, 0 otherwise. This implementation doesn't use padding bytes, so it is always 0.

int RTPPacket::_payloadType [protected]
 

The type of payload carried in this RTPPacket.

u_int16 RTPPacket::_sequenceNumber [protected]
 

The sequence number of this RTPPacket.

u_int32 RTPPacket::_ssrc [protected]
 

The ssrc identifier of the creator of this RTPPacket.

u_int32 RTPPacket::_timeStamp [protected]
 

The rtp time stamp of this RTPPacket.

int RTPPacket::_version [protected]
 

The rtp version of this RTPPacket.


The documentation for this class was generated from the following files:
Generated on Tue Sep 12 12:20:21 2006 for RTP model for OMNeT++ by  doxygen 1.4.2