Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

OutgoingRTPPkt Class Reference

A representation for RTP packets being sent. More...

#include <cc++/rtpext.h>

Inheritance diagram for OutgoingRTPPkt::

RTPPacket List of all members.

Public Methods

 OutgoingRTPPkt::OutgoingRTPPkt (const uint32 *const csrcs, uint16 numcsrc, const unsigned char *const hdrext, uint32 hdrextlen, const unsigned char *const data, uint32 datalen)
 Construct a new packet to be sent containing several contributing source identifiers, header extension and payload. More...

 OutgoingRTPPkt::OutgoingRTPPkt (const uint32 *const csrcs, uint16 numcsrc, const unsigned char *const data, uint32 datalen)
 Construct a new packet to be sent containing several contributing source identifiers, but no header extension. More...

 OutgoingRTPPkt::OutgoingRTPPkt (const unsigned char *const data, uint32 datalen)
 ~OutgoingRTPPkt ()
 Destructor. More...

void setPayloadType (rtp_payload_t pt)
void setSeqNum (uint16 seq)
void setTimestamp (uint32 ts)
void setSSRC (uint32 ssrc) const
 Set synchronization source numeric identifier. More...

void setMarker (bool mark)
uint32 getTimestamp () const
bool operator== (const OutgoingRTPPkt &p) const
bool operator!= (const OutgoingRTPPkt &p) const

Friends

class RTPQueue

Detailed Description

A representation for RTP packets being sent.

This class is intented to construct packet objects just before they are inserted into the sending queue, so that they will be processed in a understandable and format independent manner inside the stack.

Author:
Federico Montesino Pouzols <p5087@quintero.fie.us.es>


Constructor & Destructor Documentation

OutgoingRTPPkt::~OutgoingRTPPkt  
 

Destructor.


Member Function Documentation

OutgoingRTPPkt::OutgoingRTPPkt::OutgoingRTPPkt const unsigned char *const   data,
uint32   datalen
 

OutgoingRTPPkt::OutgoingRTPPkt::OutgoingRTPPkt const uint32 *const   csrcs,
uint16   numcsrc,
const unsigned char *const   data,
uint32   datalen
 

Construct a new packet to be sent containing several contributing source identifiers, but no header extension.

A new copy in memory with all this components and the fixed header together is done.

Parameters:
csrcs   array of countributing source 32-bit identifiers
numcsrc   number of CSRC identifiers in the array
data   payload
datalen   payload length, in octets

OutgoingRTPPkt::OutgoingRTPPkt::OutgoingRTPPkt const uint32 *const   csrcs,
uint16   numcsrc,
const unsigned char *const   hdrext,
uint32   hdrextlen,
const unsigned char *const   data,
uint32   datalen
 

Construct a new packet to be sent containing several contributing source identifiers, header extension and payload.

A new copy in memory with all this components together and the fixed header is done.

Parameters:
csrcs   array of countributing source 32-bit identifiers
numcsrc   number of CSRC identifiers in the array
hdrext   whole header extension
hdrextlen   size of whole header extension, in octets
data   payload
datalen   payload length, in octets
Note:
for efficiency purposes, although this constructor is valid for all packets, two simpler others are provided.

uint32 OutgoingRTPPkt::getTimestamp   const [inline]
 

Returns:
sampling instant of the first octet in the packet, in network order

bool OutgoingRTPPkt::operator!= const OutgoingRTPPkt &   p const [inline]
 

bool OutgoingRTPPkt::operator== const OutgoingRTPPkt &   p const [inline]
 

void OutgoingRTPPkt::setMarker bool   mark [inline]
 

Parameters:
mark   value for the market bit

void OutgoingRTPPkt::setPayloadType rtp_payload_t   pt [inline]
 

Parameters:
pt   packet payload type

void OutgoingRTPPkt::setSSRC uint32   ssrc const [inline]
 

Set synchronization source numeric identifier.

Returns:
32-bits Synchronization SouRCe numeric identifier in network order

void OutgoingRTPPkt::setSeqNum uint16   seq [inline]
 

Parameters:
packet   sequence number in host order

void OutgoingRTPPkt::setTimestamp uint32   ts [inline]
 

Parameters:
packet   timestamp in host order


Friends And Related Function Documentation

friend class RTPQueue [friend]
 


The documentation for this class was generated from the following file:
Generated at Sat Jan 5 09:08:54 2002 for ccRTP by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001