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 (const uint32 *const csrcs, uint16 numcsrc, const unsigned char *const hdrext, uint32 hdrextlen, const unsigned char *const data, uint32 datalen)
 OutgoingRTPPkt (const uint32 *const csrcs, uint16 numcsrc, const unsigned char *const data, uint32 datalen)
 OutgoingRTPPkt (const unsigned char *const data, uint32 datalen)
 ~OutgoingRTPPkt ()
void setPayloadType (rtp_payload_t pt)
void setSeqNum (uint16 seq)
void setTimestamp (uint32 ts)
void setSSRC (uint32 ssrc) const
void setMarker (bool mark)
uint32 getTimestamp () const
bool operator== (const OutgoingRTPPkt &p) const
bool operator!= (const OutgoingRTPPkt &p) const

Private Methods

 OutgoingRTPPkt (const OutgoingRTPPkt &o)
OutgoingRTPPkt& operator= (const OutgoingRTPPkt &o)

Private Attributes

OutgoingRTPPkt* next
OutgoingRTPPkt * prev
friend 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(s):
Federico Montesino Pouzols <p5087@quintero.fie.us.es>

Definition at line 322 of file rtpext.h.


Constructor & Destructor Documentation

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.

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 ( const unsigned char *const data,
uint32 datalen )
 

OutgoingRTPPkt::~OutgoingRTPPkt ( )
 

Destructor.

OutgoingRTPPkt::OutgoingRTPPkt ( const OutgoingRTPPkt & o ) [private]
 

Copy constructor from objects of its same kind, declared private to avoid its use.


Member Function Documentation

uint32 OutgoingRTPPkt::getTimestamp ( ) const [inline]
 

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

Definition at line 424 of file rtpext.h.

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

Definition at line 438 of file rtpext.h.

OutgoingRTPPkt & OutgoingRTPPkt::operator= ( const OutgoingRTPPkt & o ) [private]
 

Assignment operator from objects of its same kind, declared private to avoid its use.

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

Definition at line 431 of file rtpext.h.

void OutgoingRTPPkt::setMarker ( bool mark ) [inline]
 

Parameters:
mark   value for the market bit

Definition at line 416 of file rtpext.h.

void OutgoingRTPPkt::setPayloadType ( rtp_payload_t pt ) [inline]
 

Parameters:
pt   packet payload type

Definition at line 384 of file rtpext.h.

void OutgoingRTPPkt::setSSRC ( uint32 ssrc ) const [inline]
 

Set synchronization source numeric identifier.

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

Definition at line 409 of file rtpext.h.

void OutgoingRTPPkt::setSeqNum ( uint16 seq ) [inline]
 

Parameters:
packet   sequence number in host order

Definition at line 391 of file rtpext.h.

void OutgoingRTPPkt::setTimestamp ( uint32 ts ) [inline]
 

Parameters:
packet   timestamp in host order

Definition at line 398 of file rtpext.h.


Member Data Documentation

RTPQueue [private]
 

Definition at line 458 of file rtpext.h.

OutgoingRTPPkt * OutgoingRTPPkt::next [private]
 

Definition at line 456 of file rtpext.h.

OutgoingRTPPkt * OutgoingRTPPkt::prev [private]
 

Definition at line 456 of file rtpext.h.


The documentation for this class was generated from the following file:
Generated at Fri Oct 5 10:28:26 2001 for ccRTP by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001