<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>ccRTP: rtcppkt.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.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="modules.html"><span>Modules</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="examples.html"><span>Examples</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> <h1>rtcppkt.h</h1><a href="rtcppkt_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2001,2002,2004,2007 Federico Montesino Pouzols <fedemp@altern.org>.</span> <a name="l00002"></a>00002 <span class="comment">// </span> <a name="l00003"></a>00003 <span class="comment">// This program is free software; you can redistribute it and/or modify</span> <a name="l00004"></a>00004 <span class="comment">// it under the terms of the GNU General Public License as published by</span> <a name="l00005"></a>00005 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span> <a name="l00006"></a>00006 <span class="comment">// (at your option) any later version.</span> <a name="l00007"></a>00007 <span class="comment">// </span> <a name="l00008"></a>00008 <span class="comment">// This program is distributed in the hope that it will be useful,</span> <a name="l00009"></a>00009 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00010"></a>00010 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00011"></a>00011 <span class="comment">// GNU General Public License for more details.</span> <a name="l00012"></a>00012 <span class="comment">// </span> <a name="l00013"></a>00013 <span class="comment">// You should have received a copy of the GNU General Public License</span> <a name="l00014"></a>00014 <span class="comment">// along with this program; if not, write to the Free Software </span> <a name="l00015"></a>00015 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span> <a name="l00016"></a>00016 <span class="comment">// </span> <a name="l00017"></a>00017 <span class="comment">// As a special exception, you may use this file as part of a free software</span> <a name="l00018"></a>00018 <span class="comment">// library without restriction. Specifically, if other files instantiate</span> <a name="l00019"></a>00019 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span> <a name="l00020"></a>00020 <span class="comment">// this file and link it with other files to produce an executable, this</span> <a name="l00021"></a>00021 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span> <a name="l00022"></a>00022 <span class="comment">// the GNU General Public License. This exception does not however </span> <a name="l00023"></a>00023 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span> <a name="l00024"></a>00024 <span class="comment">// the GNU General Public License. </span> <a name="l00025"></a>00025 <span class="comment">//</span> <a name="l00026"></a>00026 <span class="comment">// This exception applies only to the code released under the name GNU</span> <a name="l00027"></a>00027 <span class="comment">// ccRTP. If you copy code from other releases into a copy of GNU</span> <a name="l00028"></a>00028 <span class="comment">// ccRTP, as the General Public License permits, the exception does</span> <a name="l00029"></a>00029 <span class="comment">// not apply to the code that you add in this way. To avoid misleading</span> <a name="l00030"></a>00030 <span class="comment">// anyone as to the status of such modified files, you must delete</span> <a name="l00031"></a>00031 <span class="comment">// this exception notice from them.</span> <a name="l00032"></a>00032 <span class="comment">//</span> <a name="l00033"></a>00033 <span class="comment">// If you write modifications of your own for GNU ccRTP, it is your choice</span> <a name="l00034"></a>00034 <span class="comment">// whether to permit this exception to apply to your modifications.</span> <a name="l00035"></a>00035 <span class="comment">// If you do not wish that, delete this exception notice.</span> <a name="l00036"></a>00036 <span class="comment">//</span> <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="preprocessor">#ifndef CCXX_RTP_RTCPPKT_H_</span> <a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_RTP_RTCPPKT_H_</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00041"></a>00041 <span class="preprocessor">#include <<a class="code" href="base_8h.html" title="Base elements for RTP stacks: constants, types and global functions.">ccrtp/base.h</a>></span> <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="preprocessor">#ifdef CCXX_NAMESPACES</span> <a name="l00044"></a>00044 <span class="preprocessor"></span><span class="keyword">namespace </span>ost { <a name="l00045"></a>00045 <span class="preprocessor">#endif</span> <a name="l00046"></a>00046 <span class="preprocessor"></span> <a name="l00067"></a><a class="code" href="group__rtcppacket.html#gf6d38e5ccbbcdf2a24ebbd4fc5b4eeac">00067</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a name="l00068"></a>00068 { <a name="l00069"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac2ab157e2799e810547d13a26088c9e01">00069</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac2ab157e2799e810547d13a26088c9e01" title="END of SDES item list.">SDESItemTypeEND</a> = 0, <a name="l00070"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac56818aeaa2d578ab0055a59b8d8d28f9">00070</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac56818aeaa2d578ab0055a59b8d8d28f9" title="Canonical end-point identifier.">SDESItemTypeCNAME</a>, <a name="l00071"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeacd2d8ecd66fd5a09b19c357a9178f1982">00071</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeacd2d8ecd66fd5a09b19c357a9178f1982" title="Personal NAME of the user.">SDESItemTypeNAME</a>, <a name="l00072"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeacfd806f44859892e30e1fdb79ee52fd52">00072</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeacfd806f44859892e30e1fdb79ee52fd52" title="EMAIL address of the user.">SDESItemTypeEMAIL</a>, <a name="l00073"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac27aafda2ff2ceaf53074150976936732">00073</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac27aafda2ff2ceaf53074150976936732" title="Phone number of the user.">SDESItemTypePHONE</a>, <a name="l00074"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac1bc9de1bb99ecb9d04afa036eef18090">00074</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac1bc9de1bb99ecb9d04afa036eef18090" title="Location where the user is.">SDESItemTypeLOC</a>, <a name="l00075"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac34f49dfe99b37116fd6459c6b20435f2">00075</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac34f49dfe99b37116fd6459c6b20435f2" title="Application or tool.">SDESItemTypeTOOL</a>, <a name="l00076"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac94e0214882a86e19eee5e10ade50860a">00076</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeac94e0214882a86e19eee5e10ade50860a" title="Comment usually reporting state.">SDESItemTypeNOTE</a>, <a name="l00077"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeacbfdb7c98ebb4b921d76e17f08fc1f91a">00077</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeacbfdb7c98ebb4b921d76e17f08fc1f91a" title="Private extension.">SDESItemTypePRIV</a>, <a name="l00078"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeace5040ab78402ffe4fb2d7990d09e69d1">00078</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeace5040ab78402ffe4fb2d7990d09e69d1" title="H323 callable address.">SDESItemTypeH323CADDR</a>, <a name="l00079"></a><a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeace3244c9d0a70415a4c0270893d628a3f">00079</a> <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeace3244c9d0a70415a4c0270893d628a3f" title="Last defined code.">SDESItemTypeLast</a> = <a class="code" href="group__rtcppacket.html#ggf6d38e5ccbbcdf2a24ebbd4fc5b4eeace5040ab78402ffe4fb2d7990d09e69d1" title="H323 callable address.">SDESItemTypeH323CADDR</a> <a name="l00080"></a>00080 } <a class="code" href="group__rtcppacket.html#gf6d38e5ccbbcdf2a24ebbd4fc5b4eeac" title="SDES items that may be carried in a Source DEScription RTCP packet.">SDESItemType</a>; <a name="l00081"></a>00081 <a name="l00092"></a><a class="code" href="class_r_t_c_p_compound_handler.html">00092</a> <span class="keyword">class </span>__EXPORT <a class="code" href="class_r_t_c_p_compound_handler.html" title="low level structs and RTCP packet parsing and building methods.">RTCPCompoundHandler</a> <a name="l00093"></a>00093 { <a name="l00094"></a>00094 <span class="keyword">public</span>: <a name="l00095"></a><a class="code" href="class_r_t_c_p_compound_handler.html#3623ef29bb08c07c38c36baecbe29deb">00095</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> setPathMTU(uint16 mtu) <a name="l00096"></a>00096 { pathMTU = mtu; } <a name="l00097"></a>00097 <a name="l00098"></a><a class="code" href="class_r_t_c_p_compound_handler.html#9e7ab53e1ade61ebb3251cc092742ff7">00098</a> <span class="keyword">inline</span> uint16 getPathMTU() <a name="l00099"></a>00099 { <span class="keywordflow">return</span> pathMTU; } <a name="l00100"></a>00100 <a name="l00101"></a>00101 <span class="preprocessor">#ifdef CCXX_PACKED</span> <a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#pragma pack(1) </span> <a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00104"></a>00104 <span class="preprocessor"></span> <a name="l00111"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html">00111</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html" title="Struct for the data contained in a receiver info block.">ReceiverInfo</a> <a name="l00112"></a>00112 { <a name="l00113"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html#cd40a9b925728ca5110e55762ea448c6">00113</a> uint8 fractionLost; <a name="l00114"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html#6e7edc5fb2fd80bfef7b8e2301eff069">00114</a> uint8 lostMSB; <a name="l00115"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html#c60536e4008dc038726698acb08a65f9">00115</a> uint16 lostLSW; <a name="l00116"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html#2a4f0a886721846b7f094f99df450956">00116</a> uint32 highestSeqNum; <a name="l00117"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html#0ad85fbada528393dc0a3b8be8521c0f">00117</a> uint32 jitter; <a name="l00118"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html#0be37e011beb89df1592aeffc0b4f224">00118</a> uint32 lsr; <a name="l00119"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html#fc56d46ef0ba89a261b0d66787828077">00119</a> uint32 dlsr; <a name="l00120"></a>00120 }; <a name="l00121"></a>00121 <a name="l00128"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_r_block.html">00128</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_r_block.html" title="Struct for a receiver info block in a SR (sender report) or an RR (receiver report)...">RRBlock</a> <a name="l00129"></a>00129 { <a name="l00130"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_r_block.html#5483c6eda6d12469ce49907964a56580">00130</a> uint32 ssrc; <a name="l00131"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_r_block.html#65c96aa1dd6cd21b04d117f86e811dc6">00131</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html" title="Struct for the data contained in a receiver info block.">ReceiverInfo</a> rinfo; <a name="l00132"></a>00132 }; <a name="l00133"></a>00133 <a name="l00140"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_recv_report.html">00140</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_recv_report.html" title="raw structure of the source and every receiver report in an SR or RR RTCP packet...">RecvReport</a> <a name="l00141"></a>00141 { <a name="l00142"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_recv_report.html#1b6990e42a314744fe735a137c0866a8">00142</a> uint32 ssrc; <a name="l00143"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_recv_report.html#024fca41688692bb90958f87ed7d6b5a">00143</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_r_block.html" title="Struct for a receiver info block in a SR (sender report) or an RR (receiver report)...">RRBlock</a> blocks[1]; <a name="l00144"></a>00144 }; <a name="l00145"></a>00145 <a name="l00152"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html">00152</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html" title="Struct for the sender info block in a SR (sender report) RTCP packet.">SenderInfo</a> <a name="l00153"></a>00153 { <a name="l00154"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html#059807c74b7ee010ef61113824771f39">00154</a> uint32 NTPMSW; <a name="l00155"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html#6236c2709ffc5add31660ba837d47dee">00155</a> uint32 NTPLSW; <a name="l00156"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html#d9a14ba96e63c2668384bde50747d7ef">00156</a> uint32 RTPTimestamp; <a name="l00157"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html#2cd1ebfc00726bae03378e889c0982f9">00157</a> uint32 packetCount; <a name="l00158"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html#0646fee7e9981aff70ccb50a4b750fd5">00158</a> uint32 octetCount; <a name="l00159"></a>00159 }; <a name="l00160"></a>00160 <a name="l00166"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_send_report.html">00166</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_send_report.html" title="Struct for SR (sender report) RTCP packets.">SendReport</a> <a name="l00167"></a>00167 { <a name="l00168"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_send_report.html#bbcb1ea1d9074b4c04327dad5fe8d092">00168</a> uint32 ssrc; <a name="l00169"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_send_report.html#1fbafa8b770f0fbc485e88aaf1f79aa3">00169</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html" title="Struct for the sender info block in a SR (sender report) RTCP packet.">SenderInfo</a> sinfo; <a name="l00170"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_send_report.html#1052fff713c7e19e8ee6d424121d7464">00170</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_r_block.html" title="Struct for a receiver info block in a SR (sender report) or an RR (receiver report)...">RRBlock</a> blocks[1]; <a name="l00171"></a>00171 }; <a name="l00172"></a>00172 <a name="l00178"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_item.html">00178</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_item.html" title="Struct for an item description of a SDES packet.">SDESItem</a> <a name="l00179"></a>00179 { <a name="l00180"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_item.html#48d9ca697de79b4303fbb59f9f65088f">00180</a> uint8 type; <a name="l00181"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_item.html#18763299a3ea9884443fac209379a108">00181</a> uint8 len; <a name="l00182"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_item.html#9bd243111d1644fc8196ce3fb096b2de">00182</a> <span class="keywordtype">char</span> data[1]; <a name="l00183"></a>00183 }; <a name="l00184"></a>00184 <a name="l00190"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_chunk.html">00190</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_chunk.html" title="Struct for a chunk of items in a SDES RTCP packet.">SDESChunk</a> <a name="l00191"></a>00191 { <a name="l00192"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_chunk.html#bb06410c5b14ea083943a39f492f8a07">00192</a> uint32 getSSRC()<span class="keyword"> const</span> <a name="l00193"></a>00193 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (ntohl(ssrc)); } <a name="l00194"></a>00194 <a name="l00195"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_chunk.html#45381781add3d4244268e6cef376474b">00195</a> uint32 ssrc; <a name="l00196"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_chunk.html#287a9b69dd782f58925667fae264fb04">00196</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_item.html" title="Struct for an item description of a SDES packet.">SDESItem</a> item; <a name="l00197"></a>00197 }; <a name="l00198"></a>00198 <a name="l00204"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_b_y_e_packet.html">00204</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_b_y_e_packet.html" title="Struct for BYE (leaving session) RTCP packets.">BYEPacket</a> <a name="l00205"></a>00205 { <a name="l00206"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_b_y_e_packet.html#8f34a2aabb8ff2712ff8cd82483502d1">00206</a> uint32 ssrc; <a name="l00207"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_b_y_e_packet.html#8a7c385f1360554104e041efe2cc4ae8">00207</a> uint8 length; <a name="l00208"></a>00208 }; <a name="l00209"></a>00209 <a name="l00215"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_a_p_p_packet.html">00215</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_a_p_p_packet.html" title="Struct for APP (application specific) RTCP packets.">APPPacket</a> <a name="l00216"></a>00216 { <a name="l00217"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_a_p_p_packet.html#340f00fce484051185dc2c19f3d6554c">00217</a> uint32 ssrc; <a name="l00218"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_a_p_p_packet.html#e72a406da9bb92e848363acd692278af">00218</a> <span class="keywordtype">char</span> name [4]; <a name="l00219"></a>00219 <a name="l00220"></a>00220 <a name="l00221"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_a_p_p_packet.html#b4f7f454a39dc567b67bc3070ce27058">00221</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> data[1]; <a name="l00222"></a>00222 }; <a name="l00223"></a>00223 <a name="l00230"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_f_i_r_packet.html">00230</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_f_i_r_packet.html" title="Struct for Full Intra-frame Request (FIR) RTCP packet.">FIRPacket</a> <a name="l00231"></a>00231 { <a name="l00232"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_f_i_r_packet.html#1dec40a11dad36552b7898b79e787895">00232</a> uint32 ssrc; <a name="l00233"></a>00233 }; <a name="l00234"></a>00234 <a name="l00241"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_n_a_c_k_packet.html">00241</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_n_a_c_k_packet.html" title="Struct for Negative ACKnowledgements (NACK) RTCP packet.">NACKPacket</a> <a name="l00242"></a>00242 { <a name="l00243"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_n_a_c_k_packet.html#2f8bca349178e36adf6d7ac352ba286b">00243</a> uint32 ssrc; <a name="l00244"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_n_a_c_k_packet.html#3b02f5fe322211f8187983bf3b26176a">00244</a> uint16 fsn; <a name="l00245"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_n_a_c_k_packet.html#b222a67b39f9d17fa3a4c9235a67910a">00245</a> uint16 blp; <a name="l00246"></a>00246 }; <a name="l00247"></a>00247 <a name="l00253"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html">00253</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html" title="Fixed RTCP packet header.">RTCPFixedHeader</a> <a name="l00254"></a>00254 { <a name="l00255"></a>00255 <span class="preprocessor">#if __BYTE_ORDER == __BIG_ENDIAN</span> <a name="l00257"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html#8db409c3810a744fa24b6c400139da91">00257</a> <span class="preprocessor"> unsigned char version:2; </span> <a name="l00258"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html#bf98f8c5f57fc81a2f441e4ceac290a0">00258</a> <span class="preprocessor"> unsigned char padding:1; </span> <a name="l00259"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html#bfb02ded5787e421e2b65113c82ef24c">00259</a> <span class="preprocessor"> unsigned char block_count:5; </span> <a name="l00260"></a>00260 <span class="preprocessor">#else</span> <a name="l00262"></a>00262 <span class="preprocessor"> unsigned char block_count:5; </span> <a name="l00263"></a>00263 <span class="preprocessor"> unsigned char padding:1; </span> <a name="l00264"></a>00264 <span class="preprocessor"> unsigned char version:2; </span> <a name="l00265"></a>00265 <span class="preprocessor">#endif</span> <a name="l00266"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html#e2c42f01da4e4e5de1805e5bdbce3e00">00266</a> <span class="preprocessor"></span> uint8 type; <a name="l00267"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html#2b5e9d8db5f193abb691fe37bce12a2d">00267</a> uint16 length; <a name="l00268"></a>00268 }; <a name="l00269"></a>00269 <a name="l00280"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html">00280</a> <span class="keyword">struct </span><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html" title="Struct representing general RTCP packet headers as they are sent through the network...">RTCPPacket</a> <a name="l00281"></a>00281 { <a name="l00287"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb">00287</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00288"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebbb87b69766e8b4586935176eb81218f3e">00288</a> tSR = 200, <a name="l00289"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb83566f7fd6d28389a379cf7bda6b3428">00289</a> tRR, <a name="l00290"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb7643d7745e72167d28f62758ff1425c2">00290</a> tSDES, <a name="l00291"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb792ff41b91103efed0b9335b4991e44d">00291</a> tBYE, <a name="l00292"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb4a6228323107edaaee4bb96ca071d09e">00292</a> tAPP, <a name="l00293"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb2ad99da06d146f03b44e011d02eefdb9">00293</a> tFIR = 192, <a name="l00294"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb24f150df28bb9ac1b02398b5fc834d6a">00294</a> tNACK = 193, <a name="l00295"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ba1554acd8799ea098afd9f5c33dfebb8d0597168d6904d735a85a49326f2254">00295</a> tXR <a name="l00296"></a>00296 } Type; <a name="l00297"></a>00297 <a name="l00302"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#1f0f0024b873d1a1bda1ac9b53a2f664">00302</a> uint32 getLength()<span class="keyword"> const</span> <a name="l00303"></a>00303 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ((ntohs(fh.length) + 1) << 2); } <a name="l00304"></a>00304 <a name="l00309"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#a29ddee811c44a24aa730d5f0a3756e0">00309</a> uint32 getSSRC()<span class="keyword"> const </span> <a name="l00310"></a>00310 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (ntohl(info.RR.ssrc)); } <span class="comment">// SSRC is always the first</span> <a name="l00311"></a>00311 <span class="comment">// word after fh.</span> <a name="l00312"></a>00312 <a name="l00313"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#1b31e5b2de260168dd57c771c86ea708">00313</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_fixed_header.html" title="Fixed RTCP packet header.">RTCPFixedHeader</a> fh; <a name="l00314"></a>00314 <a name="l00315"></a>00315 <span class="comment">// An RTCP packet may be of any of the types defined</span> <a name="l00316"></a>00316 <span class="comment">// above, including APP specific ones.</span> <a name="l00317"></a>00317 <span class="keyword">union</span> <a name="l00318"></a>00318 { <a name="l00319"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#ad83ef07f41ccabc8d87e69e2ef5867c">00319</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_send_report.html" title="Struct for SR (sender report) RTCP packets.">SendReport</a> SR; <a name="l00320"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#5858bc49abca67b807f5d640f63228ea">00320</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_recv_report.html" title="raw structure of the source and every receiver report in an SR or RR RTCP packet...">RecvReport</a> RR; <a name="l00321"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#46f1795ba0484f5b13463f18b9eab3d9">00321</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_s_d_e_s_chunk.html" title="Struct for a chunk of items in a SDES RTCP packet.">SDESChunk</a> SDES; <a name="l00322"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#d1bad37427837ff784f225f19a50823a">00322</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_b_y_e_packet.html" title="Struct for BYE (leaving session) RTCP packets.">BYEPacket</a> BYE; <a name="l00323"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#2f851a1598bdcd6b125614da44682f4e">00323</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_a_p_p_packet.html" title="Struct for APP (application specific) RTCP packets.">APPPacket</a> APP; <a name="l00324"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#4b93f50da5d9d1386eda98cb875d47cf">00324</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_n_a_c_k_packet.html" title="Struct for Negative ACKnowledgements (NACK) RTCP packet.">NACKPacket</a> NACK; <a name="l00325"></a><a class="code" href="struct_r_t_c_p_compound_handler_1_1_r_t_c_p_packet.html#e0ef70600d389504438894b2b508a474">00325</a> <a class="code" href="struct_r_t_c_p_compound_handler_1_1_f_i_r_packet.html" title="Struct for Full Intra-frame Request (FIR) RTCP packet.">FIRPacket</a> FIR; <a name="l00326"></a>00326 } info; <a name="l00327"></a>00327 }; <a name="l00328"></a>00328 <span class="preprocessor">#ifdef CCXX_PACKED</span> <a name="l00329"></a>00329 <span class="preprocessor"></span><span class="preprocessor">#pragma pack()</span> <a name="l00330"></a>00330 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00331"></a>00331 <span class="preprocessor"></span> <a name="l00332"></a>00332 <span class="keyword">protected</span>: <a name="l00333"></a><a class="code" href="class_r_t_c_p_compound_handler.html#e9b0b9f5a967506a540084d3370490bf09de71c940cfdbd49cc1c49fe58220b7">00333</a> <span class="keyword">enum</span> { defaultPathMTU = 1500 }; <a name="l00334"></a>00334 <a name="l00335"></a>00335 <a class="code" href="class_r_t_c_p_compound_handler.html" title="low level structs and RTCP packet parsing and building methods.">RTCPCompoundHandler</a>(uint16 mtu = defaultPathMTU); <a name="l00336"></a>00336 <a name="l00337"></a>00337 ~<a class="code" href="class_r_t_c_p_compound_handler.html" title="low level structs and RTCP packet parsing and building methods.">RTCPCompoundHandler</a>(); <a name="l00338"></a>00338 <a name="l00350"></a>00350 <span class="keywordtype">bool</span> <a name="l00351"></a>00351 checkCompoundRTCPHeader(<span class="keywordtype">size_t</span> len); <a name="l00352"></a>00352 <a name="l00353"></a>00353 <span class="comment">// buffer to hold RTCP compound packets being sent. Allocated</span> <a name="l00354"></a>00354 <span class="comment">// in construction time</span> <a name="l00355"></a><a class="code" href="class_r_t_c_p_compound_handler.html#51035644bd0291c76238b39be6745570">00355</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* rtcpSendBuffer; <a name="l00356"></a>00356 <span class="comment">// buffer to hold RTCP compound packets being</span> <a name="l00357"></a>00357 <span class="comment">// received. Allocated at construction time</span> <a name="l00358"></a><a class="code" href="class_r_t_c_p_compound_handler.html#b8d2a43b8e5ac42e4faa11a005b8cfc2">00358</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* rtcpRecvBuffer; <a name="l00359"></a>00359 <a name="l00360"></a><a class="code" href="class_r_t_c_p_compound_handler.html#2a20d7d348fbd23cb074951ba06ae9f6">00360</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_r_t_c_p_sender_info.html" title="Sender block information of SR RTCP reports.">RTCPSenderInfo</a>; <a name="l00361"></a><a class="code" href="class_r_t_c_p_compound_handler.html#9aa5832d33dc9fc7a7d8157fe45c6da3">00361</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_r_t_c_p_receiver_info.html" title="Report block information of SR/RR RTCP reports.">RTCPReceiverInfo</a>; <a name="l00362"></a>00362 <span class="keyword">private</span>: <a name="l00363"></a>00363 <span class="comment">// path MTU. RTCP packets should not be greater than this</span> <a name="l00364"></a>00364 uint16 pathMTU; <a name="l00365"></a>00365 <span class="comment">// masks for RTCP header validation;</span> <a name="l00366"></a>00366 <span class="keyword">static</span> <span class="keyword">const</span> uint16 RTCP_VALID_MASK; <a name="l00367"></a>00367 <span class="keyword">static</span> <span class="keyword">const</span> uint16 RTCP_VALID_VALUE; <a name="l00368"></a>00368 }; <a name="l00369"></a>00369 <a name="l00376"></a><a class="code" href="class_r_t_c_p_receiver_info.html">00376</a> <span class="keyword">class </span>__EXPORT <a class="code" href="class_r_t_c_p_receiver_info.html" title="Report block information of SR/RR RTCP reports.">RTCPReceiverInfo</a> <a name="l00377"></a>00377 { <a name="l00378"></a>00378 <span class="keyword">public</span>: <a name="l00379"></a><a class="code" href="class_r_t_c_p_receiver_info.html#b762ee23564243349275e9ae59ed1df8">00379</a> <a class="code" href="class_r_t_c_p_receiver_info.html" title="Report block information of SR/RR RTCP reports.">RTCPReceiverInfo</a>(<span class="keywordtype">void</span>* ri) <a name="l00380"></a>00380 { memcpy(&receiverInfo,&ri, <a name="l00381"></a>00381 <span class="keyword">sizeof</span>(<a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html" title="Struct for the data contained in a receiver info block.">RTCPCompoundHandler::ReceiverInfo</a>));} <a name="l00382"></a>00382 <a name="l00383"></a><a class="code" href="class_r_t_c_p_receiver_info.html#0c60ed6b8079a83c3687c1624071bb84">00383</a> <a class="code" href="class_r_t_c_p_receiver_info.html" title="Report block information of SR/RR RTCP reports.">RTCPReceiverInfo</a>(<a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html" title="Struct for the data contained in a receiver info block.">RTCPCompoundHandler::ReceiverInfo</a>& si) <a name="l00384"></a>00384 : receiverInfo( si ) <a name="l00385"></a>00385 { <a name="l00386"></a>00386 } <a name="l00387"></a>00387 <a name="l00388"></a><a class="code" href="class_r_t_c_p_receiver_info.html#2bc3fbbe671318da279a051c23d5fa8f">00388</a> ~<a class="code" href="class_r_t_c_p_receiver_info.html" title="Report block information of SR/RR RTCP reports.">RTCPReceiverInfo</a>() <a name="l00389"></a>00389 { } <a name="l00390"></a>00390 <a name="l00395"></a>00395 <span class="keyword">inline</span> uint8 <a name="l00396"></a><a class="code" href="class_r_t_c_p_receiver_info.html#aa9e6614a089fb9120f375b3ef11f41e">00396</a> getFractionLost()<span class="keyword"> const</span> <a name="l00397"></a>00397 <span class="keyword"> </span>{ <span class="keywordflow">return</span> receiverInfo.fractionLost; } <a name="l00398"></a>00398 <a name="l00399"></a>00399 <span class="keyword">inline</span> uint32 <a name="l00400"></a><a class="code" href="class_r_t_c_p_receiver_info.html#628bbe9739bffac717ca0fcc6d30700b">00400</a> getCumulativePacketLost()<span class="keyword"> const</span> <a name="l00401"></a>00401 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ( ((uint32)ntohs(receiverInfo.lostLSW)) + <a name="l00402"></a>00402 (((uint32)receiverInfo.lostMSB) << 16) ); } <a name="l00403"></a>00403 <a name="l00404"></a>00404 <span class="keyword">inline</span> uint32 <a name="l00405"></a><a class="code" href="class_r_t_c_p_receiver_info.html#6956ba83ceb94cf218517ff6bf5e0f47">00405</a> getExtendedSeqNum()<span class="keyword"> const</span> <a name="l00406"></a>00406 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(receiverInfo.highestSeqNum); } <a name="l00407"></a>00407 <a name="l00414"></a>00414 uint32 <a name="l00415"></a><a class="code" href="class_r_t_c_p_receiver_info.html#59e02663ca8f4f09ef540254e101fa77">00415</a> getJitter()<span class="keyword"> const</span> <a name="l00416"></a>00416 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(receiverInfo.jitter); } <a name="l00417"></a>00417 <a name="l00423"></a>00423 uint16 <a name="l00424"></a><a class="code" href="class_r_t_c_p_receiver_info.html#dd2897fb994e78e2ab403c404cf08f16">00424</a> getLastSRNTPTimestampInt()<span class="keyword"> const</span> <a name="l00425"></a>00425 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (uint16)((ntohl(receiverInfo.lsr) & 0xFFFF0000) >> 16); } <a name="l00426"></a>00426 <a name="l00432"></a>00432 uint16 <a name="l00433"></a><a class="code" href="class_r_t_c_p_receiver_info.html#74108f07817626491239b11e38404352">00433</a> getLastSRNTPTimestampFrac()<span class="keyword"> const</span> <a name="l00434"></a>00434 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (uint16)(ntohl(receiverInfo.lsr) & 0xFFFF); } <a name="l00435"></a>00435 <a name="l00442"></a>00442 uint32 <a name="l00443"></a><a class="code" href="class_r_t_c_p_receiver_info.html#6dd8393ce0ac9137cb879df1e78c6791">00443</a> getDelayLastSR()<span class="keyword"> const</span> <a name="l00444"></a>00444 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(receiverInfo.dlsr); } <a name="l00445"></a>00445 <a name="l00446"></a>00446 <span class="keyword">private</span>: <a name="l00447"></a>00447 <a class="code" href="struct_r_t_c_p_compound_handler_1_1_receiver_info.html" title="Struct for the data contained in a receiver info block.">RTCPCompoundHandler::ReceiverInfo</a> receiverInfo; <a name="l00448"></a>00448 }; <a name="l00449"></a>00449 <a name="l00456"></a><a class="code" href="class_r_t_c_p_sender_info.html">00456</a> <span class="keyword">class </span>__EXPORT <a class="code" href="class_r_t_c_p_sender_info.html" title="Sender block information of SR RTCP reports.">RTCPSenderInfo</a> <a name="l00457"></a>00457 { <a name="l00458"></a>00458 <span class="keyword">public</span>: <a name="l00459"></a><a class="code" href="class_r_t_c_p_sender_info.html#ed69ed7a5cfee9def4361f0c0ea94347">00459</a> <a class="code" href="class_r_t_c_p_sender_info.html" title="Sender block information of SR RTCP reports.">RTCPSenderInfo</a>(<span class="keywordtype">void</span>* si) <a name="l00460"></a>00460 { memcpy(&senderInfo,&si, <a name="l00461"></a>00461 <span class="keyword">sizeof</span>(<a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html" title="Struct for the sender info block in a SR (sender report) RTCP packet.">RTCPCompoundHandler::SenderInfo</a>));} <a name="l00462"></a>00462 <a name="l00463"></a><a class="code" href="class_r_t_c_p_sender_info.html#7322036d10bff1898d4ed37dd140ac99">00463</a> <a class="code" href="class_r_t_c_p_sender_info.html" title="Sender block information of SR RTCP reports.">RTCPSenderInfo</a>(<a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html" title="Struct for the sender info block in a SR (sender report) RTCP packet.">RTCPCompoundHandler::SenderInfo</a>& si) <a name="l00464"></a>00464 : senderInfo( si ) <a name="l00465"></a>00465 { <a name="l00466"></a>00466 } <a name="l00467"></a>00467 <a name="l00468"></a><a class="code" href="class_r_t_c_p_sender_info.html#8f459aaa74198e51cd5a5615b2270663">00468</a> ~<a class="code" href="class_r_t_c_p_sender_info.html" title="Sender block information of SR RTCP reports.">RTCPSenderInfo</a>() <a name="l00469"></a>00469 { } <a name="l00470"></a>00470 <a name="l00475"></a>00475 uint32 <a name="l00476"></a><a class="code" href="class_r_t_c_p_sender_info.html#fa803d35a5ea717b6f2ac6c378caa33e">00476</a> getNTPTimestampInt()<span class="keyword"> const</span> <a name="l00477"></a>00477 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(senderInfo.NTPMSW); } <a name="l00478"></a>00478 <a name="l00483"></a>00483 uint32 <a name="l00484"></a><a class="code" href="class_r_t_c_p_sender_info.html#77ef13de46413470078405e77ec23de9">00484</a> getNTPTimestampFrac()<span class="keyword"> const</span> <a name="l00485"></a>00485 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(senderInfo.NTPLSW); } <a name="l00486"></a>00486 <a name="l00487"></a>00487 <span class="keyword">inline</span> uint32 <a name="l00488"></a><a class="code" href="class_r_t_c_p_sender_info.html#5ca06c8c1d193b98559019bd811c71b1">00488</a> getRTPTimestamp()<span class="keyword"> const</span> <a name="l00489"></a>00489 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(senderInfo.RTPTimestamp); } <a name="l00490"></a>00490 <a name="l00494"></a>00494 <span class="keyword">inline</span> uint32 <a name="l00495"></a><a class="code" href="class_r_t_c_p_sender_info.html#7fbe662395922a2131cf6a0b4e9468e1">00495</a> getPacketCount()<span class="keyword"> const</span> <a name="l00496"></a>00496 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(senderInfo.packetCount); } <a name="l00497"></a>00497 <a name="l00498"></a>00498 <span class="keyword">inline</span> uint32 <a name="l00499"></a><a class="code" href="class_r_t_c_p_sender_info.html#65846e1e78e28e8fafc5bc6dffbac72a">00499</a> getOctetCount()<span class="keyword"> const</span> <a name="l00500"></a>00500 <span class="keyword"> </span>{ <span class="keywordflow">return</span> ntohl(senderInfo.octetCount); } <a name="l00501"></a>00501 <a name="l00502"></a>00502 <span class="keyword">private</span>: <a name="l00503"></a>00503 <a class="code" href="struct_r_t_c_p_compound_handler_1_1_sender_info.html" title="Struct for the sender info block in a SR (sender report) RTCP packet.">RTCPCompoundHandler::SenderInfo</a> senderInfo; <a name="l00504"></a>00504 }; <a name="l00505"></a>00505 <a name="l00514"></a>00514 timeval <a name="l00515"></a>00515 <a class="code" href="group__rtcppacket.html#g854f3202157f7c3a3f64af77794b7598" title="Convert a NTP timestamp, expressed as two 32-bit long words, into a timeval value...">NTP2Timeval</a>(uint32 msw, uint32 lsw); <a name="l00516"></a>00516 <a name="l00524"></a>00524 uint32 <a name="l00525"></a>00525 <a class="code" href="group__rtcppacket.html#gd57d4689eec9bb3987b3e70613d9e9e1" title="Convert a time interval, expressed as a timeval, into a 32-bit time interval expressed...">timevalIntervalTo65536</a>(timeval& t); <a name="l00526"></a>00526 <span class="comment">// rtcppacket</span> <a name="l00528"></a>00528 <a name="l00529"></a>00529 <span class="preprocessor">#ifdef CCXX_NAMESPACES</span> <a name="l00530"></a>00530 <span class="preprocessor"></span>} <a name="l00531"></a>00531 <span class="preprocessor">#endif</span> <a name="l00532"></a>00532 <span class="preprocessor"></span> <a name="l00533"></a>00533 <span class="preprocessor">#endif // ndef CCXX_RTP_RTCPPKT_H_</span> <a name="l00534"></a>00534 <span class="preprocessor"></span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jul 24 21:42:25 2009 for ccRTP 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>