<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>jrtplib: src/rtpsourcedata.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="jrtplib.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_e5298977290e638844c8018a73ab0caf.html">src</a> </div> </div> <div class="contents"> <h1>rtpsourcedata.h</h1><a href="rtpsourcedata_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> This file is a part of JRTPLIB</span> <a name="l00004"></a>00004 <span class="comment"> Copyright (c) 1999-2007 Jori Liesenborgs</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Contact: jori.liesenborgs@gmail.com</span> <a name="l00007"></a>00007 <span class="comment"></span> <a name="l00008"></a>00008 <span class="comment"> This library was developed at the "Expertisecentrum Digitale Media"</span> <a name="l00009"></a>00009 <span class="comment"> (http://www.edm.uhasselt.be), a research center of the Hasselt University</span> <a name="l00010"></a>00010 <span class="comment"> (http://www.uhasselt.be). The library is based upon work done for </span> <a name="l00011"></a>00011 <span class="comment"> my thesis at the School for Knowledge Technology (Belgium/The Netherlands).</span> <a name="l00012"></a>00012 <span class="comment"></span> <a name="l00013"></a>00013 <span class="comment"> Permission is hereby granted, free of charge, to any person obtaining a</span> <a name="l00014"></a>00014 <span class="comment"> copy of this software and associated documentation files (the "Software"),</span> <a name="l00015"></a>00015 <span class="comment"> to deal in the Software without restriction, including without limitation</span> <a name="l00016"></a>00016 <span class="comment"> the rights to use, copy, modify, merge, publish, distribute, sublicense,</span> <a name="l00017"></a>00017 <span class="comment"> and/or sell copies of the Software, and to permit persons to whom the</span> <a name="l00018"></a>00018 <span class="comment"> Software is furnished to do so, subject to the following conditions:</span> <a name="l00019"></a>00019 <span class="comment"></span> <a name="l00020"></a>00020 <span class="comment"> The above copyright notice and this permission notice shall be included</span> <a name="l00021"></a>00021 <span class="comment"> in all copies or substantial portions of the Software.</span> <a name="l00022"></a>00022 <span class="comment"></span> <a name="l00023"></a>00023 <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS</span> <a name="l00024"></a>00024 <span class="comment"> OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span> <a name="l00025"></a>00025 <span class="comment"> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span> <a name="l00026"></a>00026 <span class="comment"> THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span> <a name="l00027"></a>00027 <span class="comment"> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span> <a name="l00028"></a>00028 <span class="comment"> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS</span> <a name="l00029"></a>00029 <span class="comment"> IN THE SOFTWARE.</span> <a name="l00030"></a>00030 <span class="comment"></span> <a name="l00031"></a>00031 <span class="comment">*/</span> <a name="l00032"></a>00032 <a name="l00037"></a>00037 <span class="preprocessor">#ifndef RTPSOURCEDATA_H</span> <a name="l00038"></a>00038 <span class="preprocessor"></span> <a name="l00039"></a>00039 <span class="preprocessor">#define RTPSOURCEDATA_H</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00041"></a>00041 <span class="preprocessor">#include "rtpconfig.h"</span> <a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="rtptimeutilities_8h.html">rtptimeutilities.h</a>"</span> <a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="rtppacket_8h.html">rtppacket.h</a>"</span> <a name="l00044"></a>00044 <span class="preprocessor">#include "<a class="code" href="rtcpsdesinfo_8h.html">rtcpsdesinfo.h</a>"</span> <a name="l00045"></a>00045 <span class="preprocessor">#include "rtptypes.h"</span> <a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="rtpsources_8h.html">rtpsources.h</a>"</span> <a name="l00047"></a>00047 <span class="preprocessor">#include "<a class="code" href="rtpmemoryobject_8h.html">rtpmemoryobject.h</a>"</span> <a name="l00048"></a>00048 <span class="preprocessor">#include <list></span> <a name="l00049"></a>00049 <a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="classRTPAddress.html" title="This class is an abstract class which is used to specify destinations, multicast...">RTPAddress</a>; <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="keyword">class </span>RTCPSenderReportInfo <a name="l00053"></a>00053 { <a name="l00054"></a>00054 <span class="keyword">public</span>: <a name="l00055"></a>00055 RTCPSenderReportInfo():ntptimestamp(0,0),receivetime(0,0) { hasinfo = <span class="keyword">false</span>; rtptimestamp = 0; packetcount = 0; bytecount = 0; } <a name="l00056"></a>00056 <span class="keywordtype">void</span> Set(<span class="keyword">const</span> <a class="code" href="classRTPNTPTime.html" title="This is a simple wrapper for the most significant word (MSW) and least significant...">RTPNTPTime</a> &ntptime,uint32_t rtptime,uint32_t pcount, <a name="l00057"></a>00057 uint32_t bcount,<span class="keyword">const</span> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> &rcvtime) { ntptimestamp = ntptime; rtptimestamp = rtptime; packetcount = pcount; bytecount = bcount; receivetime = rcvtime; hasinfo = <span class="keyword">true</span>; } <a name="l00058"></a>00058 <a name="l00059"></a>00059 <span class="keywordtype">bool</span> HasInfo()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hasinfo; } <a name="l00060"></a>00060 <a class="code" href="classRTPNTPTime.html" title="This is a simple wrapper for the most significant word (MSW) and least significant...">RTPNTPTime</a> GetNTPTimestamp()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ntptimestamp; } <a name="l00061"></a>00061 uint32_t GetRTPTimestamp()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rtptimestamp; } <a name="l00062"></a>00062 uint32_t GetPacketCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> packetcount; } <a name="l00063"></a>00063 uint32_t GetByteCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> bytecount; } <a name="l00064"></a>00064 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> GetReceiveTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> receivetime; } <a name="l00065"></a>00065 <span class="keyword">private</span>: <a name="l00066"></a>00066 <span class="keywordtype">bool</span> hasinfo; <a name="l00067"></a>00067 <a class="code" href="classRTPNTPTime.html" title="This is a simple wrapper for the most significant word (MSW) and least significant...">RTPNTPTime</a> ntptimestamp; <a name="l00068"></a>00068 uint32_t rtptimestamp; <a name="l00069"></a>00069 uint32_t packetcount; <a name="l00070"></a>00070 uint32_t bytecount; <a name="l00071"></a>00071 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> receivetime; <a name="l00072"></a>00072 }; <a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="keyword">class </span>RTCPReceiverReportInfo <a name="l00075"></a>00075 { <a name="l00076"></a>00076 <span class="keyword">public</span>: <a name="l00077"></a>00077 RTCPReceiverReportInfo():receivetime(0,0) { hasinfo = <span class="keyword">false</span>; fractionlost = 0; packetslost = 0; exthighseqnr = 0; jitter = 0; lsr = 0; dlsr = 0; } <a name="l00078"></a>00078 <span class="keywordtype">void</span> Set(uint8_t fraclost,int32_t plost,uint32_t exthigh, <a name="l00079"></a>00079 uint32_t jit,uint32_t l,uint32_t dl,<span class="keyword">const</span> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> &rcvtime) { fractionlost = ((double)fraclost)/256.0; packetslost = plost; exthighseqnr = exthigh; jitter = jit; lsr = l; dlsr = dl; receivetime = rcvtime; hasinfo = <span class="keyword">true</span>; } <a name="l00080"></a>00080 <a name="l00081"></a>00081 <span class="keywordtype">bool</span> HasInfo()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hasinfo; } <a name="l00082"></a>00082 <span class="keywordtype">double</span> GetFractionLost()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fractionlost; } <a name="l00083"></a>00083 int32_t GetPacketsLost()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> packetslost; } <a name="l00084"></a>00084 uint32_t GetExtendedHighestSequenceNumber()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> exthighseqnr; } <a name="l00085"></a>00085 uint32_t GetJitter()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> jitter; } <a name="l00086"></a>00086 uint32_t GetLastSRTimestamp()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lsr; } <a name="l00087"></a>00087 uint32_t GetDelaySinceLastSR()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> dlsr; } <a name="l00088"></a>00088 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> GetReceiveTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> receivetime; } <a name="l00089"></a>00089 <span class="keyword">private</span>: <a name="l00090"></a>00090 <span class="keywordtype">bool</span> hasinfo; <a name="l00091"></a>00091 <span class="keywordtype">double</span> fractionlost; <a name="l00092"></a>00092 int32_t packetslost; <a name="l00093"></a>00093 uint32_t exthighseqnr; <a name="l00094"></a>00094 uint32_t jitter; <a name="l00095"></a>00095 uint32_t lsr; <a name="l00096"></a>00096 uint32_t dlsr; <a name="l00097"></a>00097 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> receivetime; <a name="l00098"></a>00098 }; <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="keyword">class </span>RTPSourceStats <a name="l00101"></a>00101 { <a name="l00102"></a>00102 <span class="keyword">public</span>: <a name="l00103"></a>00103 RTPSourceStats(); <a name="l00104"></a>00104 <span class="keywordtype">void</span> ProcessPacket(<a class="code" href="classRTPPacket.html" title="Represents an RTP Packet.">RTPPacket</a> *pack,<span class="keyword">const</span> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> &receivetime,<span class="keywordtype">double</span> tsunit,<span class="keywordtype">bool</span> ownpacket,<span class="keywordtype">bool</span> *accept,<span class="keywordtype">bool</span> applyprobation,<span class="keywordtype">bool</span> *onprobation); <a name="l00105"></a>00105 <a name="l00106"></a>00106 <span class="keywordtype">bool</span> HasSentData()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sentdata; } <a name="l00107"></a>00107 uint32_t GetNumPacketsReceived()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> packetsreceived; } <a name="l00108"></a>00108 uint32_t GetBaseSequenceNumber()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> baseseqnr; } <a name="l00109"></a>00109 uint32_t GetExtendedHighestSequenceNumber()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> exthighseqnr; } <a name="l00110"></a>00110 uint32_t GetJitter()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> jitter; } <a name="l00111"></a>00111 <a name="l00112"></a>00112 int32_t GetNumPacketsReceivedInInterval()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> numnewpackets; } <a name="l00113"></a>00113 uint32_t GetSavedExtendedSequenceNumber()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> savedextseqnr; } <a name="l00114"></a>00114 <span class="keywordtype">void</span> StartNewInterval() { numnewpackets = 0; savedextseqnr = exthighseqnr; } <a name="l00115"></a>00115 <a name="l00116"></a>00116 <span class="keywordtype">void</span> SetLastMessageTime(<span class="keyword">const</span> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> &t) { lastmsgtime = t; } <a name="l00117"></a>00117 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> GetLastMessageTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lastmsgtime; } <a name="l00118"></a>00118 <span class="keywordtype">void</span> SetLastRTPPacketTime(<span class="keyword">const</span> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> &t) { lastrtptime = t; } <a name="l00119"></a>00119 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> GetLastRTPPacketTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lastrtptime; } <a name="l00120"></a>00120 <a name="l00121"></a>00121 <span class="keywordtype">void</span> SetLastNoteTime(<span class="keyword">const</span> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> &t) { lastnotetime = t; } <a name="l00122"></a>00122 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> GetLastNoteTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lastnotetime; } <a name="l00123"></a>00123 <span class="keyword">private</span>: <a name="l00124"></a>00124 <span class="keywordtype">bool</span> sentdata; <a name="l00125"></a>00125 uint32_t packetsreceived; <a name="l00126"></a>00126 uint32_t numcycles; <span class="comment">// shifted left 16 bits</span> <a name="l00127"></a>00127 uint32_t baseseqnr; <a name="l00128"></a>00128 uint32_t exthighseqnr,prevexthighseqnr; <a name="l00129"></a>00129 uint32_t jitter,prevtimestamp; <a name="l00130"></a>00130 <span class="keywordtype">double</span> djitter; <a name="l00131"></a>00131 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> prevpacktime; <a name="l00132"></a>00132 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> lastmsgtime; <a name="l00133"></a>00133 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> lastrtptime; <a name="l00134"></a>00134 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> lastnotetime; <a name="l00135"></a>00135 uint32_t numnewpackets; <a name="l00136"></a>00136 uint32_t savedextseqnr; <a name="l00137"></a>00137 <span class="preprocessor">#ifdef RTP_SUPPORT_PROBATION</span> <a name="l00138"></a>00138 <span class="preprocessor"></span> uint16_t prevseqnr; <a name="l00139"></a>00139 <span class="keywordtype">int</span> probation; <a name="l00140"></a>00140 <a class="code" href="classRTPSources.html#c56d7cb0238003c4e803471d1889ff35" title="Type of probation to use for new sources.">RTPSources::ProbationType</a> probationtype; <a name="l00141"></a>00141 <span class="preprocessor">#endif // RTP_SUPPORT_PROBATION</span> <a name="l00142"></a>00142 <span class="preprocessor"></span>}; <a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="keyword">inline</span> RTPSourceStats::RTPSourceStats():prevpacktime(0,0),lastmsgtime(0,0),lastrtptime(0,0),lastnotetime(0,0) <a name="l00145"></a>00145 { <a name="l00146"></a>00146 sentdata = <span class="keyword">false</span>; <a name="l00147"></a>00147 packetsreceived = 0; <a name="l00148"></a>00148 baseseqnr = 0; <a name="l00149"></a>00149 exthighseqnr = 0; <a name="l00150"></a>00150 prevexthighseqnr = 0; <a name="l00151"></a>00151 jitter = 0; <a name="l00152"></a>00152 numcycles = 0; <a name="l00153"></a>00153 numnewpackets = 0; <a name="l00154"></a>00154 prevtimestamp = 0; <a name="l00155"></a>00155 djitter = 0; <a name="l00156"></a>00156 savedextseqnr = 0; <a name="l00157"></a>00157 <span class="preprocessor">#ifdef RTP_SUPPORT_PROBATION</span> <a name="l00158"></a>00158 <span class="preprocessor"></span> probation = 0; <a name="l00159"></a>00159 prevseqnr = 0; <a name="l00160"></a>00160 <span class="preprocessor">#endif // RTP_SUPPORT_PROBATION</span> <a name="l00161"></a>00161 <span class="preprocessor"></span>} <a name="l00162"></a>00162 <a name="l00164"></a><a class="code" href="classRTPSourceData.html">00164</a> <span class="keyword">class </span><a class="code" href="classRTPSourceData.html" title="Describes an entry in the RTPSources source table.">RTPSourceData</a> : <span class="keyword">public</span> RTPMemoryObject <a name="l00165"></a>00165 { <a name="l00166"></a>00166 <span class="keyword">protected</span>: <a name="l00167"></a>00167 <a class="code" href="classRTPSourceData.html" title="Describes an entry in the RTPSources source table.">RTPSourceData</a>(uint32_t ssrc, <a class="code" href="classRTPMemoryManager.html" title="A memory manager.">RTPMemoryManager</a> *mgr = 0); <a name="l00168"></a>00168 <span class="keyword">virtual</span> ~<a class="code" href="classRTPSourceData.html" title="Describes an entry in the RTPSources source table.">RTPSourceData</a>(); <a name="l00169"></a>00169 <span class="keyword">public</span>: <a name="l00171"></a>00171 <a class="code" href="classRTPPacket.html" title="Represents an RTP Packet.">RTPPacket</a> *<a class="code" href="classRTPSourceData.html#7b4c4db1be33cc3d3b4a2d71bd5fd047" title="Extracts the first packet of this participants RTP packet queue.">GetNextPacket</a>(); <a name="l00172"></a>00172 <a name="l00174"></a>00174 <span class="keywordtype">void</span> <a class="code" href="classRTPSourceData.html#b0d8b075dcdfd0372de942738ab3579a" title="Clears the participant&#39;s RTP packet list.">FlushPackets</a>(); <a name="l00175"></a>00175 <a name="l00177"></a><a class="code" href="classRTPSourceData.html#899e3c6755f3dda3c6b2eb927ce0dcae">00177</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#899e3c6755f3dda3c6b2eb927ce0dcae" title="Returns true if there are RTP packets which can be extracted.">HasData</a>()<span class="keyword"> const </span>{ <span class="keywordflow">if</span> (!validated) <span class="keywordflow">return</span> <span class="keyword">false</span>; <span class="keywordflow">return</span> packetlist.empty()?<span class="keyword">false</span>:<span class="keyword">true</span>; } <a name="l00178"></a>00178 <a name="l00180"></a><a class="code" href="classRTPSourceData.html#662e34205d214318595c7142e0dc35a1">00180</a> uint32_t <a class="code" href="classRTPSourceData.html#662e34205d214318595c7142e0dc35a1" title="Returns the SSRC identifier for this member.">GetSSRC</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ssrc; } <a name="l00181"></a>00181 <a name="l00185"></a><a class="code" href="classRTPSourceData.html#050529453881d1ddb5b0f276b6b63a3f">00185</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#050529453881d1ddb5b0f276b6b63a3f" title="Returns true if the participant was added using the RTPSources member function CreateOwnSSRC...">IsOwnSSRC</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ownssrc; } <a name="l00186"></a>00186 <a name="l00188"></a><a class="code" href="classRTPSourceData.html#1c8232c4d3e430fd0683ac4e0ecd4c9d">00188</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#1c8232c4d3e430fd0683ac4e0ecd4c9d" title="Returns true if the source identifier is actually a CSRC from an RTP packet.">IsCSRC</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> iscsrc; } <a name="l00189"></a>00189 <a name="l00191"></a><a class="code" href="classRTPSourceData.html#d7721f0f243a5ffb35faf022ff1dd5ae">00191</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#d7721f0f243a5ffb35faf022ff1dd5ae" title="Returns true if this member is marked as a sender and false if not.">IsSender</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> issender; } <a name="l00192"></a>00192 <a name="l00197"></a><a class="code" href="classRTPSourceData.html#31b42f0ab7271d07b4df084835bcfcf4">00197</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#31b42f0ab7271d07b4df084835bcfcf4" title="Returns true if the participant is validated, which is the case if a number of consecutive...">IsValidated</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> validated; } <a name="l00198"></a>00198 <a name="l00200"></a><a class="code" href="classRTPSourceData.html#97b32759380f97fd2590ca6a20406b01">00200</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#97b32759380f97fd2590ca6a20406b01" title="Returns true if the source was validated and had not yet sent a BYE packet.">IsActive</a>()<span class="keyword"> const </span>{ <span class="keywordflow">if</span> (!validated) <span class="keywordflow">return</span> <span class="keyword">false</span>; <span class="keywordflow">if</span> (receivedbye) <span class="keywordflow">return</span> <span class="keyword">false</span>; <span class="keywordflow">return</span> <span class="keyword">true</span>; } <a name="l00201"></a>00201 <a name="l00205"></a><a class="code" href="classRTPSourceData.html#201798b64b4d09ecc11ecc0706f8a5bc">00205</a> <span class="keywordtype">void</span> <a class="code" href="classRTPSourceData.html#201798b64b4d09ecc11ecc0706f8a5bc" title="This function is used by the RTCPPacketBuilder class to mark whether this participant&#39;s...">SetProcessedInRTCP</a>(<span class="keywordtype">bool</span> v) { processedinrtcp = v; } <a name="l00206"></a>00206 <a name="l00210"></a><a class="code" href="classRTPSourceData.html#eff3f891e827e25cf594ea6fc87d63f7">00210</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#eff3f891e827e25cf594ea6fc87d63f7" title="This function is used by the RTCPPacketBuilder class and returns whether this participant...">IsProcessedInRTCP</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> processedinrtcp; } <a name="l00211"></a>00211 <a name="l00215"></a><a class="code" href="classRTPSourceData.html#04aa6aa4f83c46bdc7cf67e7d72375a1">00215</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#04aa6aa4f83c46bdc7cf67e7d72375a1" title="Returns true if the address from which this participant&#39;s RTP packets originate...">IsRTPAddressSet</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> isrtpaddrset; } <a name="l00216"></a>00216 <a name="l00220"></a><a class="code" href="classRTPSourceData.html#05ae59f1b64294c3bc729e5aa8d054e4">00220</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#05ae59f1b64294c3bc729e5aa8d054e4" title="Returns true if the address from which this participant&#39;s RTCP packets originate...">IsRTCPAddressSet</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> isrtcpaddrset; } <a name="l00221"></a>00221 <a name="l00227"></a><a class="code" href="classRTPSourceData.html#a8aceb5ce6d0e580f0e21e74755fe612">00227</a> <span class="keyword">const</span> <a class="code" href="classRTPAddress.html" title="This class is an abstract class which is used to specify destinations, multicast...">RTPAddress</a> *<a class="code" href="classRTPSourceData.html#a8aceb5ce6d0e580f0e21e74755fe612" title="Returns the address from which this participant&#39;s RTP packets originate.">GetRTPDataAddress</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rtpaddr; } <a name="l00228"></a>00228 <a name="l00234"></a><a class="code" href="classRTPSourceData.html#f9983679790acf3ee240fc42ccb7bd83">00234</a> <span class="keyword">const</span> <a class="code" href="classRTPAddress.html" title="This class is an abstract class which is used to specify destinations, multicast...">RTPAddress</a> *<a class="code" href="classRTPSourceData.html#f9983679790acf3ee240fc42ccb7bd83" title="Returns the address from which this participant&#39;s RTCP packets originate.">GetRTCPDataAddress</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rtcpaddr; } <a name="l00235"></a>00235 <a name="l00237"></a><a class="code" href="classRTPSourceData.html#52ac92ec213d48cf233676b3f0ff9785">00237</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#52ac92ec213d48cf233676b3f0ff9785" title="Returns true if we received a BYE message for this participant and false otherwise...">ReceivedBYE</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> receivedbye; } <a name="l00238"></a>00238 <a name="l00243"></a><a class="code" href="classRTPSourceData.html#e04463e22a2a2fe8edea090d63d271ea">00243</a> uint8_t *<a class="code" href="classRTPSourceData.html#e04463e22a2a2fe8edea090d63d271ea" title="Returns the reason for leaving contained in the BYE packet of this participant.">GetBYEReason</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ *len = byereasonlen; <span class="keywordflow">return</span> byereason; } <a name="l00244"></a>00244 <a name="l00246"></a><a class="code" href="classRTPSourceData.html#c8bfd2f085818851478f075d58c49bd3">00246</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#c8bfd2f085818851478f075d58c49bd3" title="Returns the time at which the BYE packet was received.">GetBYETime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> byetime; } <a name="l00247"></a>00247 <a name="l00254"></a><a class="code" href="classRTPSourceData.html#fcd8d87077ee365cb36aa52283ac478a">00254</a> <span class="keywordtype">void</span> <a class="code" href="classRTPSourceData.html#fcd8d87077ee365cb36aa52283ac478a" title="Sets the value for the timestamp unit to be used in jitter calculations for data...">SetTimestampUnit</a>(<span class="keywordtype">double</span> tsu) { timestampunit = tsu; } <a name="l00255"></a>00255 <a name="l00257"></a><a class="code" href="classRTPSourceData.html#e448f19e2c08c44e159681ea1a406557">00257</a> <span class="keywordtype">double</span> <a class="code" href="classRTPSourceData.html#e448f19e2c08c44e159681ea1a406557" title="Returns the timestamp unit used for this participant.">GetTimestampUnit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> timestampunit; } <a name="l00258"></a>00258 <a name="l00260"></a><a class="code" href="classRTPSourceData.html#b9424b95cf70c09488e79a54b920a4f2">00260</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#b9424b95cf70c09488e79a54b920a4f2" title="Returns true if an RTCP sender report has been received from this participant.">SR_HasInfo</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRinf.HasInfo(); } <a name="l00261"></a>00261 <a name="l00263"></a><a class="code" href="classRTPSourceData.html#1e16102ba46e18bcfc12881bdd0af584">00263</a> <a class="code" href="classRTPNTPTime.html" title="This is a simple wrapper for the most significant word (MSW) and least significant...">RTPNTPTime</a> <a class="code" href="classRTPSourceData.html#1e16102ba46e18bcfc12881bdd0af584" title="Returns the NTP timestamp contained in the last sender report.">SR_GetNTPTimestamp</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRinf.GetNTPTimestamp(); } <a name="l00264"></a>00264 <a name="l00266"></a><a class="code" href="classRTPSourceData.html#c44c97ebfd98b5fc94aa5faa9564e177">00266</a> uint32_t <a class="code" href="classRTPSourceData.html#c44c97ebfd98b5fc94aa5faa9564e177" title="Returns the RTP timestamp contained in the last sender report.">SR_GetRTPTimestamp</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRinf.GetRTPTimestamp(); } <a name="l00267"></a>00267 <a name="l00269"></a><a class="code" href="classRTPSourceData.html#f2353a0e213f1dad13134a5ce0145c04">00269</a> uint32_t <a class="code" href="classRTPSourceData.html#f2353a0e213f1dad13134a5ce0145c04" title="Returns the packet count contained in the last sender report.">SR_GetPacketCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRinf.GetPacketCount(); } <a name="l00270"></a>00270 <a name="l00272"></a><a class="code" href="classRTPSourceData.html#6271acf2d8b63149cb749a505b64c116">00272</a> uint32_t <a class="code" href="classRTPSourceData.html#6271acf2d8b63149cb749a505b64c116" title="Returns the octet count contained in the last sender report.">SR_GetByteCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRinf.GetByteCount(); } <a name="l00273"></a>00273 <a name="l00275"></a><a class="code" href="classRTPSourceData.html#1409afa6ce240477974d63524933e035">00275</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#1409afa6ce240477974d63524933e035" title="Returns the time at which the last sender report was received.">SR_GetReceiveTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRinf.GetReceiveTime(); } <a name="l00276"></a>00276 <a name="l00278"></a><a class="code" href="classRTPSourceData.html#63ab45bc855434263da99d6a65dc9dbd">00278</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#63ab45bc855434263da99d6a65dc9dbd" title="Returns true if more than one RTCP sender report has been received.">SR_Prev_HasInfo</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRprevinf.HasInfo(); } <a name="l00279"></a>00279 <a name="l00281"></a><a class="code" href="classRTPSourceData.html#f4d2bb5f463e2cf88b12121c1ef93c8d">00281</a> <a class="code" href="classRTPNTPTime.html" title="This is a simple wrapper for the most significant word (MSW) and least significant...">RTPNTPTime</a> <a class="code" href="classRTPSourceData.html#f4d2bb5f463e2cf88b12121c1ef93c8d" title="Returns the NTP timestamp contained in the second to last sender report.">SR_Prev_GetNTPTimestamp</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRprevinf.GetNTPTimestamp(); } <a name="l00282"></a>00282 <a name="l00284"></a><a class="code" href="classRTPSourceData.html#4a5b3b2484a7b0af1f8d2269c15a145e">00284</a> uint32_t <a class="code" href="classRTPSourceData.html#4a5b3b2484a7b0af1f8d2269c15a145e" title="Returns the RTP timestamp contained in the second to last sender report.">SR_Prev_GetRTPTimestamp</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRprevinf.GetRTPTimestamp(); } <a name="l00285"></a>00285 <a name="l00287"></a><a class="code" href="classRTPSourceData.html#108b55a1843ab18105039fff4f4030a5">00287</a> uint32_t <a class="code" href="classRTPSourceData.html#108b55a1843ab18105039fff4f4030a5" title="Returns the packet count contained in the second to last sender report.">SR_Prev_GetPacketCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRprevinf.GetPacketCount(); } <a name="l00288"></a>00288 <a name="l00290"></a><a class="code" href="classRTPSourceData.html#711e127f28f1d2507186c50354d14b82">00290</a> uint32_t <a class="code" href="classRTPSourceData.html#711e127f28f1d2507186c50354d14b82" title="Returns the octet count contained in the second to last sender report.">SR_Prev_GetByteCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRprevinf.GetByteCount(); } <a name="l00291"></a>00291 <a name="l00293"></a><a class="code" href="classRTPSourceData.html#5a3525f250f8b5d23c7166cc839318a9">00293</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#5a3525f250f8b5d23c7166cc839318a9" title="Returns the time at which the second to last sender report was received.">SR_Prev_GetReceiveTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SRprevinf.GetReceiveTime(); } <a name="l00294"></a>00294 <a name="l00296"></a><a class="code" href="classRTPSourceData.html#b7004c2eecee6355d7ba277dcd6b2c00">00296</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#b7004c2eecee6355d7ba277dcd6b2c00" title="Returns true if this participant sent a receiver report with information about the...">RR_HasInfo</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.HasInfo(); } <a name="l00297"></a>00297 <a name="l00299"></a><a class="code" href="classRTPSourceData.html#7e1354d52272c550c8bfabfab1ed58d2">00299</a> <span class="keywordtype">double</span> <a class="code" href="classRTPSourceData.html#7e1354d52272c550c8bfabfab1ed58d2" title="Returns the fraction lost value from the last report.">RR_GetFractionLost</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.GetFractionLost(); } <a name="l00300"></a>00300 <a name="l00302"></a><a class="code" href="classRTPSourceData.html#0db6782f19198449bdd81614a79b328a">00302</a> int32_t <a class="code" href="classRTPSourceData.html#0db6782f19198449bdd81614a79b328a" title="Returns the number of lost packets contained in the last report.">RR_GetPacketsLost</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.GetPacketsLost(); } <a name="l00303"></a>00303 <a name="l00305"></a><a class="code" href="classRTPSourceData.html#d17d9337d76a9fa4872ecc5de9075be9">00305</a> uint32_t <a class="code" href="classRTPSourceData.html#d17d9337d76a9fa4872ecc5de9075be9" title="Returns the extended highest sequence number contained in the last report.">RR_GetExtendedHighestSequenceNumber</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.GetExtendedHighestSequenceNumber(); } <a name="l00306"></a>00306 <a name="l00308"></a><a class="code" href="classRTPSourceData.html#6c4f9a6830151e971ffa909e48cccd0c">00308</a> uint32_t <a class="code" href="classRTPSourceData.html#6c4f9a6830151e971ffa909e48cccd0c" title="Returns the jitter value from the last report.">RR_GetJitter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.GetJitter(); } <a name="l00309"></a>00309 <a name="l00311"></a><a class="code" href="classRTPSourceData.html#6e2cb37b8e933444cea6c136fd70d5af">00311</a> uint32_t <a class="code" href="classRTPSourceData.html#6e2cb37b8e933444cea6c136fd70d5af" title="Returns the LSR value from the last report.">RR_GetLastSRTimestamp</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.GetLastSRTimestamp(); } <a name="l00312"></a>00312 <a name="l00314"></a><a class="code" href="classRTPSourceData.html#b76b753035106e2a3306d59cb501ffe8">00314</a> uint32_t <a class="code" href="classRTPSourceData.html#b76b753035106e2a3306d59cb501ffe8" title="Returns the DLSR value from the last report.">RR_GetDelaySinceLastSR</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.GetDelaySinceLastSR(); } <a name="l00315"></a>00315 <a name="l00317"></a><a class="code" href="classRTPSourceData.html#c7c0014c40e9c1e9791b526f7b4ea42a">00317</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#c7c0014c40e9c1e9791b526f7b4ea42a" title="Returns the time at which the last report was received.">RR_GetReceiveTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRinf.GetReceiveTime(); } <a name="l00318"></a>00318 <a name="l00322"></a><a class="code" href="classRTPSourceData.html#2c50c9bb9491a195a426b4ce4ee0c9fb">00322</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#2c50c9bb9491a195a426b4ce4ee0c9fb" title="Returns true if this participant sent more than one receiver report with information...">RR_Prev_HasInfo</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.HasInfo(); } <a name="l00323"></a>00323 <a name="l00325"></a><a class="code" href="classRTPSourceData.html#9584d07dc40abbbf2bf694316ab53ec8">00325</a> <span class="keywordtype">double</span> <a class="code" href="classRTPSourceData.html#9584d07dc40abbbf2bf694316ab53ec8" title="Returns the fraction lost value from the second to last report.">RR_Prev_GetFractionLost</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.GetFractionLost(); } <a name="l00326"></a>00326 <a name="l00328"></a><a class="code" href="classRTPSourceData.html#642910176439969ed8ad58f0092aec8b">00328</a> int32_t <a class="code" href="classRTPSourceData.html#642910176439969ed8ad58f0092aec8b" title="Returns the number of lost packets contained in the second to last report.">RR_Prev_GetPacketsLost</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.GetPacketsLost(); } <a name="l00329"></a>00329 <a name="l00331"></a><a class="code" href="classRTPSourceData.html#16bf85098f209e8aa56953dac3699420">00331</a> uint32_t <a class="code" href="classRTPSourceData.html#16bf85098f209e8aa56953dac3699420" title="Returns the extended highest sequence number contained in the second to last report...">RR_Prev_GetExtendedHighestSequenceNumber</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.GetExtendedHighestSequenceNumber(); } <a name="l00332"></a>00332 <a name="l00334"></a><a class="code" href="classRTPSourceData.html#51ac2bc6a07d1efcbd56357923d14971">00334</a> uint32_t <a class="code" href="classRTPSourceData.html#51ac2bc6a07d1efcbd56357923d14971" title="Returns the jitter value from the second to last report.">RR_Prev_GetJitter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.GetJitter(); } <a name="l00335"></a>00335 <a name="l00337"></a><a class="code" href="classRTPSourceData.html#16cfc44e7e19f4ab4d439f679650ec65">00337</a> uint32_t <a class="code" href="classRTPSourceData.html#16cfc44e7e19f4ab4d439f679650ec65" title="Returns the LSR value from the second to last report.">RR_Prev_GetLastSRTimestamp</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.GetLastSRTimestamp(); } <a name="l00338"></a>00338 <a name="l00340"></a><a class="code" href="classRTPSourceData.html#123259f0ad299900cc76d935bfdae301">00340</a> uint32_t <a class="code" href="classRTPSourceData.html#123259f0ad299900cc76d935bfdae301" title="Returns the DLSR value from the second to last report.">RR_Prev_GetDelaySinceLastSR</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.GetDelaySinceLastSR(); } <a name="l00341"></a>00341 <a name="l00343"></a><a class="code" href="classRTPSourceData.html#b621d6c534f583ffa5e70f79e6ca04bc">00343</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#b621d6c534f583ffa5e70f79e6ca04bc" title="Returns the time at which the second to last report was received.">RR_Prev_GetReceiveTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RRprevinf.GetReceiveTime(); } <a name="l00344"></a>00344 <a name="l00346"></a><a class="code" href="classRTPSourceData.html#482e14c7bf7187e706dfe8a32e98b2d2">00346</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#482e14c7bf7187e706dfe8a32e98b2d2" title="Returns true if validated RTP packets have been received from this participant.">INF_HasSentData</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.HasSentData(); } <a name="l00347"></a>00347 <a name="l00349"></a><a class="code" href="classRTPSourceData.html#7fa3355b9796a55e225c26178d82c708">00349</a> int32_t <a class="code" href="classRTPSourceData.html#7fa3355b9796a55e225c26178d82c708" title="Returns the total number of received packets from this participant.">INF_GetNumPacketsReceived</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetNumPacketsReceived(); } <a name="l00350"></a>00350 <a name="l00352"></a><a class="code" href="classRTPSourceData.html#45b575c54573df543bb2090721185b7e">00352</a> uint32_t <a class="code" href="classRTPSourceData.html#45b575c54573df543bb2090721185b7e" title="Returns the base sequence number of this participant.">INF_GetBaseSequenceNumber</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetBaseSequenceNumber(); } <a name="l00353"></a>00353 <a name="l00355"></a><a class="code" href="classRTPSourceData.html#a6d65dd61f0a0157e44fe441bd012cb6">00355</a> uint32_t <a class="code" href="classRTPSourceData.html#a6d65dd61f0a0157e44fe441bd012cb6" title="Returns the extended highest sequence number received from this participant.">INF_GetExtendedHighestSequenceNumber</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetExtendedHighestSequenceNumber(); } <a name="l00356"></a>00356 <a name="l00358"></a><a class="code" href="classRTPSourceData.html#b1cfbc41087d6708ca201766e3739375">00358</a> uint32_t <a class="code" href="classRTPSourceData.html#b1cfbc41087d6708ca201766e3739375" title="Returns the current jitter value for this participant.">INF_GetJitter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetJitter(); } <a name="l00359"></a>00359 <a name="l00361"></a><a class="code" href="classRTPSourceData.html#1d4f04414b00002a3b8f6a78d37772f8">00361</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#1d4f04414b00002a3b8f6a78d37772f8" title="Returns the time at which something was last heard from this member.">INF_GetLastMessageTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetLastMessageTime(); } <a name="l00362"></a>00362 <a name="l00364"></a><a class="code" href="classRTPSourceData.html#e1a2b1d4cf23ca45158acee77a7a64d5">00364</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#e1a2b1d4cf23ca45158acee77a7a64d5" title="Returns the time at which the last RTP packet was received.">INF_GetLastRTPPacketTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetLastRTPPacketTime(); } <a name="l00365"></a>00365 <a name="l00367"></a>00367 <span class="keywordtype">double</span> <a class="code" href="classRTPSourceData.html#8ece38dd18177c18a10611aeaa6e8192" title="Returns the estimated timestamp unit, calculated from two consecutive sender reports...">INF_GetEstimatedTimestampUnit</a>() <span class="keyword">const</span>; <a name="l00368"></a>00368 <a name="l00370"></a><a class="code" href="classRTPSourceData.html#18ec9d58f898992167c39f5a5309aa89">00370</a> uint32_t <a class="code" href="classRTPSourceData.html#18ec9d58f898992167c39f5a5309aa89" title="Returns the number of packets received since a new interval was started with INF_StartNewInterval...">INF_GetNumPacketsReceivedInInterval</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetNumPacketsReceivedInInterval(); } <a name="l00371"></a>00371 <a name="l00373"></a><a class="code" href="classRTPSourceData.html#d6d2ac9a021a4f8f56502bf77ad03f95">00373</a> uint32_t <a class="code" href="classRTPSourceData.html#d6d2ac9a021a4f8f56502bf77ad03f95" title="Returns the extended sequence number which was stored by the INF_StartNewInterval...">INF_GetSavedExtendedSequenceNumber</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetSavedExtendedSequenceNumber(); } <a name="l00374"></a>00374 <a name="l00378"></a><a class="code" href="classRTPSourceData.html#743512da03199a9e0c4c7337d99e47a6">00378</a> <span class="keywordtype">void</span> <a class="code" href="classRTPSourceData.html#743512da03199a9e0c4c7337d99e47a6" title="Starts a new interval to count received packets in; this also stores the current...">INF_StartNewInterval</a>() { stats.StartNewInterval(); } <a name="l00379"></a>00379 <a name="l00381"></a>00381 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#fbba63b6694a2508e7f551ce88bdaac4" title="Estimates the round trip time by using the LSR and DLSR info from the last receiver...">INF_GetRoundtripTime</a>() <span class="keyword">const</span>; <a name="l00382"></a>00382 <a name="l00384"></a><a class="code" href="classRTPSourceData.html#61e3fcbf57e883649ec18beab08326cb">00384</a> <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> <a class="code" href="classRTPSourceData.html#61e3fcbf57e883649ec18beab08326cb" title="Returns the time at which the last SDES NOTE item was received.">INF_GetLastSDESNoteTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stats.GetLastNoteTime(); } <a name="l00385"></a>00385 <a name="l00387"></a><a class="code" href="classRTPSourceData.html#877eeb80ccb2f8b40f6ba71d2bc9a489">00387</a> uint8_t *<a class="code" href="classRTPSourceData.html#877eeb80ccb2f8b40f6ba71d2bc9a489" title="Returns a pointer to the SDES CNAME item of this participant and stores its length...">SDES_GetCNAME</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#400d613dfb7da9537aa93add228eb8e7" title="Returns the SDES CNAME item and stores its length in len.">GetCNAME</a>(len); } <a name="l00388"></a>00388 <a name="l00390"></a><a class="code" href="classRTPSourceData.html#cb57f4ef772c438312689f7e9d866af4">00390</a> uint8_t *<a class="code" href="classRTPSourceData.html#cb57f4ef772c438312689f7e9d866af4" title="Returns a pointer to the SDES name item of this participant and stores its length...">SDES_GetName</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#d54c5b92d6d289cff35788dde8863647" title="Returns the SDES name item and stores its length in len.">GetName</a>(len); } <a name="l00391"></a>00391 <a name="l00393"></a><a class="code" href="classRTPSourceData.html#4ef37a90cbfbfd92a9696cd8d3b9c7cf">00393</a> uint8_t *<a class="code" href="classRTPSourceData.html#4ef37a90cbfbfd92a9696cd8d3b9c7cf" title="Returns a pointer to the SDES e-mail item of this participant and stores its length...">SDES_GetEMail</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#001ea540dc3b29235655f204abd165f8" title="Returns the SDES e-mail item and stores its length in len.">GetEMail</a>(len); } <a name="l00394"></a>00394 <a name="l00396"></a><a class="code" href="classRTPSourceData.html#c9654ddae7099c8013295dda205d4ebd">00396</a> uint8_t *<a class="code" href="classRTPSourceData.html#c9654ddae7099c8013295dda205d4ebd" title="Returns a pointer to the SDES phone item of this participant and stores its length...">SDES_GetPhone</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#adaea9599df715fc09cc26d9f841d4d7" title="Returns the SDES phone item and stores its length in len.">GetPhone</a>(len); } <a name="l00397"></a>00397 <a name="l00399"></a><a class="code" href="classRTPSourceData.html#151a5d0d7635c4aa859db0a7f0d62687">00399</a> uint8_t *<a class="code" href="classRTPSourceData.html#151a5d0d7635c4aa859db0a7f0d62687" title="Returns a pointer to the SDES location item of this participant and stores its length...">SDES_GetLocation</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#da8db2c0c4dca11547958835a3b4c4fb" title="Returns the SDES location item and stores its length in len.">GetLocation</a>(len); } <a name="l00400"></a>00400 <a name="l00402"></a><a class="code" href="classRTPSourceData.html#8a14d86cfa2823c364a1baf4a761b1e5">00402</a> uint8_t *<a class="code" href="classRTPSourceData.html#8a14d86cfa2823c364a1baf4a761b1e5" title="Returns a pointer to the SDES tool item of this participant and stores its length...">SDES_GetTool</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#5d8c6556c611bc3c11f86ab9527aea94" title="Returns the SDES tool item and stores its length in len.">GetTool</a>(len); } <a name="l00403"></a>00403 <a name="l00405"></a><a class="code" href="classRTPSourceData.html#eafb2de1c46e040899c5013f124344f4">00405</a> uint8_t *<a class="code" href="classRTPSourceData.html#eafb2de1c46e040899c5013f124344f4" title="Returns a pointer to the SDES note item of this participant and stores its length...">SDES_GetNote</a>(<span class="keywordtype">size_t</span> *len)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#f3aac80f99bb1efae469b57f0bebc117" title="Returns the SDES note item and stores its length in len.">GetNote</a>(len); } <a name="l00406"></a>00406 <a name="l00407"></a>00407 <span class="preprocessor">#ifdef RTP_SUPPORT_SDESPRIV</span> <a name="l00408"></a>00408 <span class="preprocessor"></span> <a name="l00409"></a><a class="code" href="classRTPSourceData.html#54c056a827dff33d88bd515cbbc83ce5">00409</a> <span class="keywordtype">void</span> <a class="code" href="classRTPSourceData.html#54c056a827dff33d88bd515cbbc83ce5" title="Starts the iteration over the stored SDES private item prefixes and their associated...">SDES_GotoFirstPrivateValue</a>() { SDESinf.<a class="code" href="classRTCPSDESInfo.html#ed5849ecdcca405043da1d4a79a2b860" title="Starts the iteration over the stored SDES private item prefixes and their associated...">GotoFirstPrivateValue</a>(); } <a name="l00410"></a>00410 <a name="l00414"></a><a class="code" href="classRTPSourceData.html#c669c6c28c92701d355473f16a2d179b">00414</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#c669c6c28c92701d355473f16a2d179b" title="If available, returns true and stores the next SDES private item prefix in prefix...">SDES_GetNextPrivateValue</a>(uint8_t **prefix,<span class="keywordtype">size_t</span> *prefixlen,uint8_t **value,<span class="keywordtype">size_t</span> *valuelen) { <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#9ea816849121fd8a8a2771bec564f6d3" title="Returns SDES priv item information.">GetNextPrivateValue</a>(prefix,prefixlen,value,valuelen); } <a name="l00415"></a>00415 <a name="l00420"></a><a class="code" href="classRTPSourceData.html#99195ec932ea7db6115ef783fa2522c7">00420</a> <span class="keywordtype">bool</span> <a class="code" href="classRTPSourceData.html#99195ec932ea7db6115ef783fa2522c7" title="Looks for the entry which corresponds to the SDES private item prefix prefix with...">SDES_GetPrivateValue</a>(uint8_t *prefix,<span class="keywordtype">size_t</span> prefixlen,uint8_t **value,<span class="keywordtype">size_t</span> *valuelen)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> SDESinf.<a class="code" href="classRTCPSDESInfo.html#7c99aa3a593d533972f278b7dbeca30f" title="Returns SDES priv item information.">GetPrivateValue</a>(prefix,prefixlen,value,valuelen); } <a name="l00421"></a>00421 <span class="preprocessor">#endif // RTP_SUPPORT_SDESPRIV</span> <a name="l00422"></a>00422 <span class="preprocessor"></span> <a name="l00423"></a>00423 <span class="preprocessor">#ifdef RTPDEBUG</span> <a name="l00424"></a>00424 <span class="preprocessor"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> Dump(); <a name="l00425"></a>00425 <span class="preprocessor">#endif // RTPDEBUG</span> <a name="l00426"></a>00426 <span class="preprocessor"></span><span class="keyword">protected</span>: <a name="l00427"></a>00427 std::list<RTPPacket *> packetlist; <a name="l00428"></a>00428 <a name="l00429"></a>00429 uint32_t ssrc; <a name="l00430"></a>00430 <span class="keywordtype">bool</span> ownssrc; <a name="l00431"></a>00431 <span class="keywordtype">bool</span> iscsrc; <a name="l00432"></a>00432 <span class="keywordtype">double</span> timestampunit; <a name="l00433"></a>00433 <span class="keywordtype">bool</span> receivedbye; <a name="l00434"></a>00434 <span class="keywordtype">bool</span> validated; <a name="l00435"></a>00435 <span class="keywordtype">bool</span> processedinrtcp; <a name="l00436"></a>00436 <span class="keywordtype">bool</span> issender; <a name="l00437"></a>00437 <a name="l00438"></a>00438 RTCPSenderReportInfo SRinf,SRprevinf; <a name="l00439"></a>00439 RTCPReceiverReportInfo RRinf,RRprevinf; <a name="l00440"></a>00440 RTPSourceStats stats; <a name="l00441"></a>00441 <a class="code" href="classRTCPSDESInfo.html" title="The class RTCPSDESInfo is a container for RTCP SDES information.">RTCPSDESInfo</a> SDESinf; <a name="l00442"></a>00442 <a name="l00443"></a>00443 <span class="keywordtype">bool</span> isrtpaddrset,isrtcpaddrset; <a name="l00444"></a>00444 <a class="code" href="classRTPAddress.html" title="This class is an abstract class which is used to specify destinations, multicast...">RTPAddress</a> *rtpaddr,*rtcpaddr; <a name="l00445"></a>00445 <a name="l00446"></a>00446 <a class="code" href="classRTPTime.html" title="This class is used to specify wallclock time, delay intervals etc.">RTPTime</a> byetime; <a name="l00447"></a>00447 uint8_t *byereason; <a name="l00448"></a>00448 <span class="keywordtype">size_t</span> byereasonlen; <a name="l00449"></a>00449 }; <a name="l00450"></a>00450 <a name="l00451"></a><a class="code" href="classRTPSourceData.html#7b4c4db1be33cc3d3b4a2d71bd5fd047">00451</a> <span class="keyword">inline</span> <a class="code" href="classRTPPacket.html" title="Represents an RTP Packet.">RTPPacket</a> *<a class="code" href="classRTPSourceData.html#7b4c4db1be33cc3d3b4a2d71bd5fd047" title="Extracts the first packet of this participants RTP packet queue.">RTPSourceData::GetNextPacket</a>() <a name="l00452"></a>00452 { <a name="l00453"></a>00453 <span class="keywordflow">if</span> (!validated) <a name="l00454"></a>00454 <span class="keywordflow">return</span> 0; <a name="l00455"></a>00455 <a name="l00456"></a>00456 <a class="code" href="classRTPPacket.html" title="Represents an RTP Packet.">RTPPacket</a> *p; <a name="l00457"></a>00457 <a name="l00458"></a>00458 <span class="keywordflow">if</span> (packetlist.empty()) <a name="l00459"></a>00459 <span class="keywordflow">return</span> 0; <a name="l00460"></a>00460 p = *(packetlist.begin()); <a name="l00461"></a>00461 packetlist.pop_front(); <a name="l00462"></a>00462 <span class="keywordflow">return</span> p; <a name="l00463"></a>00463 } <a name="l00464"></a>00464 <a name="l00465"></a><a class="code" href="classRTPSourceData.html#b0d8b075dcdfd0372de942738ab3579a">00465</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classRTPSourceData.html#b0d8b075dcdfd0372de942738ab3579a" title="Clears the participant&#39;s RTP packet list.">RTPSourceData::FlushPackets</a>() <a name="l00466"></a>00466 { <a name="l00467"></a>00467 std::list<RTPPacket *>::const_iterator it; <a name="l00468"></a>00468 <a name="l00469"></a>00469 <span class="keywordflow">for</span> (it = packetlist.begin() ; it != packetlist.end() ; ++it) <a name="l00470"></a>00470 RTPDelete(*it,GetMemoryManager()); <a name="l00471"></a>00471 packetlist.clear(); <a name="l00472"></a>00472 } <a name="l00473"></a>00473 <span class="preprocessor">#endif // RTPSOURCEDATA_H</span> <a name="l00474"></a>00474 <span class="preprocessor"></span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 26 09:42:08 2009 for jrtplib by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>