<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>OutgoingRTPPkt class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.5 on Fri Oct 5 10:28:26 2001 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center> <hr><h1>OutgoingRTPPkt Class Reference</h1>A representation for RTP packets being sent. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="rtpext_h-source.html">cc++/rtpext.h</a>></code> <p> <p>Inheritance diagram for OutgoingRTPPkt: <p><center><img src="class_OutgoingRTPPkt.gif" usemap="#OutgoingRTPPkt_map" border="0"></center> <map name="OutgoingRTPPkt_map"> <area href="class_RTPPacket.html" alt="RTPPacket" shape="rect" coords="0,0,103,24"> </map> <a href="class_OutgoingRTPPkt-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a0">OutgoingRTPPkt</a> (const uint32 *const csrcs, uint16 numcsrc, const unsigned char *const hdrext, uint32 hdrextlen, const unsigned char *const data, uint32 datalen)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a1">OutgoingRTPPkt</a> (const uint32 *const csrcs, uint16 numcsrc, const unsigned char *const data, uint32 datalen)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a2">OutgoingRTPPkt</a> (const unsigned char *const data, uint32 datalen)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a3">~OutgoingRTPPkt</a> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a4">setPayloadType</a> (<a class="el" href="rtp_h.html#a67">rtp_payload_t</a> pt)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a5">setSeqNum</a> (uint16 seq)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a6">setTimestamp</a> (uint32 ts)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a7">setSSRC</a> (uint32 ssrc) const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a8">setMarker</a> (bool mark)</td></tr> <tr><td nowrap align=right valign=top>uint32 </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a9">getTimestamp</a> () const</td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a10">operator==</a> (const OutgoingRTPPkt &p) const</td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#a11">operator!=</a> (const OutgoingRTPPkt &p) const</td></tr> <tr><td colspan=2><br><h2>Private Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#c0">OutgoingRTPPkt</a> (const OutgoingRTPPkt &o)</td></tr> <tr><td nowrap align=right valign=top>OutgoingRTPPkt& </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#c1">operator=</a> (const OutgoingRTPPkt &o)</td></tr> <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>OutgoingRTPPkt* </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#o0">next</a></td></tr> <tr><td nowrap align=right valign=top>OutgoingRTPPkt * </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#o1">prev</a></td></tr> <tr><td nowrap align=right valign=top>friend </td><td valign=bottom><a class="el" href="class_OutgoingRTPPkt.html#o2">RTPQueue</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A representation for RTP packets being sent. <p> <p> 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. <p> <dl compact><dt> <b>Author(s): </b><dd> Federico Montesino Pouzols <<a href="mailto:p5087@quintero.fie.us.es">p5087@quintero.fie.us.es</a>> </dl> <p> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00322">322</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="OutgoingRTPPkt::OutgoingRTPPkt"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt::OutgoingRTPPkt ( </b></td> <td valign="bottom"><b> const uint32 *const <em>csrcs</em>, </b></td> </tr> <tr> <td></td> <td><b> uint16 <em>numcsrc</em>, </b></td> </tr> <tr> <td></td> <td><b> const unsigned char *const <em>hdrext</em>, </b></td> </tr> <tr> <td></td> <td><b> uint32 <em>hdrextlen</em>, </b></td> </tr> <tr> <td></td> <td><b> const unsigned char *const <em>data</em>, </b></td> </tr> <tr> <td></td> <td><b> uint32 <em>datalen</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> 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.<dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>csrcs</em> </td><td> array of countributing source 32-bit identifiers </td></tr> <tr><td valign=top><em>numcsrc</em> </td><td> number of CSRC identifiers in the array </td></tr> <tr><td valign=top><em>hdrext</em> </td><td> whole header extension </td></tr> <tr><td valign=top><em>hdrextlen</em> </td><td> size of whole header extension, in octets </td></tr> <tr><td valign=top><em>data</em> </td><td> payload </td></tr> <tr><td valign=top><em>datalen</em> </td><td> payload length, in octets <p> </td></tr> </table> </dl><dl compact><dt> <b>Note: </b><dd> for efficiency purposes, although this constructor is valid for all packets, two simpler others are provided. </dl> </td> </tr> </table> <a name="a1" doxytag="OutgoingRTPPkt::OutgoingRTPPkt"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt::OutgoingRTPPkt ( </b></td> <td valign="bottom"><b> const uint32 *const <em>csrcs</em>, </b></td> </tr> <tr> <td></td> <td><b> uint16 <em>numcsrc</em>, </b></td> </tr> <tr> <td></td> <td><b> const unsigned char *const <em>data</em>, </b></td> </tr> <tr> <td></td> <td><b> uint32 <em>datalen</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> 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.<dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>csrcs</em> </td><td> array of countributing source 32-bit identifiers </td></tr> <tr><td valign=top><em>numcsrc</em> </td><td> number of CSRC identifiers in the array </td></tr> <tr><td valign=top><em>data</em> </td><td> payload </td></tr> <tr><td valign=top><em>datalen</em> </td><td> payload length, in octets </td></tr> </table> </dl> </td> </tr> </table> <a name="a2" doxytag="OutgoingRTPPkt::OutgoingRTPPkt"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt::OutgoingRTPPkt ( </b></td> <td valign="bottom"><b> const unsigned char *const <em>data</em>, </b></td> </tr> <tr> <td></td> <td><b> uint32 <em>datalen</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="OutgoingRTPPkt::~OutgoingRTPPkt"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt::~OutgoingRTPPkt ( </b></td> <td valign="bottom"><b> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Destructor. </td> </tr> </table> <a name="c0" doxytag="OutgoingRTPPkt::OutgoingRTPPkt"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt::OutgoingRTPPkt ( </b></td> <td valign="bottom"><b> const OutgoingRTPPkt & <em>o</em> )<code> [private]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Copy constructor from objects of its same kind, declared private to avoid its use. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a9" doxytag="OutgoingRTPPkt::getTimestamp"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> uint32 OutgoingRTPPkt::getTimestamp ( </b></td> <td valign="bottom"><b> ) const<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Returns: </b><dd> sampling instant of the first octet in the packet, in network order </dl> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00424">424</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="a11" doxytag="OutgoingRTPPkt::operator!="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> bool OutgoingRTPPkt::operator!= ( </b></td> <td valign="bottom"><b> const OutgoingRTPPkt & <em>p</em> ) const<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00438">438</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="c1" doxytag="OutgoingRTPPkt::operator="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt & OutgoingRTPPkt::operator= ( </b></td> <td valign="bottom"><b> const OutgoingRTPPkt & <em>o</em> )<code> [private]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Assignment operator from objects of its same kind, declared private to avoid its use. </td> </tr> </table> <a name="a10" doxytag="OutgoingRTPPkt::operator=="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> bool OutgoingRTPPkt::operator== ( </b></td> <td valign="bottom"><b> const OutgoingRTPPkt & <em>p</em> ) const<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00431">431</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="a8" doxytag="OutgoingRTPPkt::setMarker"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void OutgoingRTPPkt::setMarker ( </b></td> <td valign="bottom"><b> bool <em>mark</em> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>mark</em> </td><td> value for the market bit </td></tr> </table> </dl> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00416">416</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="a4" doxytag="OutgoingRTPPkt::setPayloadType"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void OutgoingRTPPkt::setPayloadType ( </b></td> <td valign="bottom"><b> <a class="el" href="rtp_h.html#a67">rtp_payload_t</a> <em>pt</em> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pt</em> </td><td> packet payload type </td></tr> </table> </dl> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00384">384</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="a7" doxytag="OutgoingRTPPkt::setSSRC"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void OutgoingRTPPkt::setSSRC ( </b></td> <td valign="bottom"><b> uint32 <em>ssrc</em> ) const<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set synchronization source numeric identifier. <p> <dl compact><dt> <b>Returns: </b><dd> 32-bits Synchronization SouRCe numeric identifier in network order </dl> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00409">409</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="a5" doxytag="OutgoingRTPPkt::setSeqNum"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void OutgoingRTPPkt::setSeqNum ( </b></td> <td valign="bottom"><b> uint16 <em>seq</em> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>packet</em> </td><td> sequence number in host order </td></tr> </table> </dl> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00391">391</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="a6" doxytag="OutgoingRTPPkt::setTimestamp"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void OutgoingRTPPkt::setTimestamp ( </b></td> <td valign="bottom"><b> uint32 <em>ts</em> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>packet</em> </td><td> timestamp in host order </td></tr> </table> </dl> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00398">398</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="o2" doxytag="OutgoingRTPPkt::RTPQueue"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> RTPQueue<code> [private]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00458">458</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="o0" doxytag="OutgoingRTPPkt::next"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt * OutgoingRTPPkt::next<code> [private]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00456">456</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <a name="o1" doxytag="OutgoingRTPPkt::prev"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> OutgoingRTPPkt * OutgoingRTPPkt::prev<code> [private]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rtpext_h-source.html#l00456">456</a> of file <a class="el" href="rtpext_h-source.html">rtpext.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="rtpext_h-source.html">rtpext.h</a></ul> <hr><address><small>Generated at Fri Oct 5 10:28:26 2001 for ccRTP by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.5 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>