Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_rtp_file_sender.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: CRtpFileSender Class Reference</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.6.2 -->
<div class="contents">
<h1>CRtpFileSender Class Reference</h1><!-- doxytag: class="CRtpFileSender" -->
<p><a href="class_c_rtp_file_sender-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#aecbbd6e4ff98c225474210edde8f02e5">DoPacketSent</a> (const TRtpEvent &aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#acd993430262ed8a1909fc47b0ef36c99">DoSendError</a> (const TRtpEvent &aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09469ec6e3b0c977961c4f37532b8268"></a><!-- doxytag: member="CRtpFileSender::StartL" ref="a09469ec6e3b0c977961c4f37532b8268" args="()" -->
void </td><td class="memItemRight" valign="bottom"><b>StartL</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d247e334ce13904580baf6008e084a1"></a><!-- doxytag: member="CRtpFileSender::SetObserver" ref="a7d247e334ce13904580baf6008e084a1" args="(MFileStreamerObserver &aObserver)" -->
void </td><td class="memItemRight" valign="bottom"><b>SetObserver</b> (<a class="el" href="class_m_file_streamer_observer.html">MFileStreamerObserver</a> &aObserver)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#acc0e18b5616ed680f92433c2cc023375">PacketSent</a> (<a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> *aPtr, const TRtpEvent &aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rtp_file_sender.html#a2f2435036f8e6ad9e01b9433d8b269b7">SendError</a> (<a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> *aPtr, const TRtpEvent &aEvent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64c0dc812a3fdd4c5ba8c445a608d763"></a><!-- doxytag: member="CRtpFileSender::NewL" ref="a64c0dc812a3fdd4c5ba8c445a608d763" args="(RRtpSession &aSession, RFs &aFs, const TDesC &aSrcFilename, TInt aPacketSize, TInt aDelayMicroSeconds)" -->
static <a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> * </td><td class="memItemRight" valign="bottom"><b>NewL</b> (RRtpSession &aSession, RFs &aFs, const TDesC &aSrcFilename, TInt aPacketSize, TInt aDelayMicroSeconds)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>An Active Object which sends a block of a file after every n microseconds as an RTP payload. </p>
<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8h_source.html#l00039">39</a> of file <a class="el" href="_r_t_p_file_streamer_8h_source.html">RTPFileStreamer.h</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="acc0e18b5616ed680f92433c2cc023375"></a><!-- doxytag: member="CRtpFileSender::PacketSent" ref="acc0e18b5616ed680f92433c2cc023375" args="(CRtpFileSender *aPtr, const TRtpEvent &aEvent)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRtpFileSender::PacketSent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> * </td>
<td class="paramname"> <em>aPtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const TRtpEvent & </td>
<td class="paramname"> <em>aEvent</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A callback method which <a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> registers with the RtpSession to be called when a packet is successfully sent. </p>
<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00050">50</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="aecbbd6e4ff98c225474210edde8f02e5"></a><!-- doxytag: member="CRtpFileSender::DoPacketSent" ref="aecbbd6e4ff98c225474210edde8f02e5" args="(const TRtpEvent &aEvent)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRtpFileSender::DoPacketSent </td>
<td>(</td>
<td class="paramtype">const TRtpEvent & </td>
<td class="paramname"> <em>aEvent</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>An instance method which is called by the static callback function to notify the observer and start the RTimer such that another packet can be sent when the timer expires. </p>
<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00060">60</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a2f2435036f8e6ad9e01b9433d8b269b7"></a><!-- doxytag: member="CRtpFileSender::SendError" ref="a2f2435036f8e6ad9e01b9433d8b269b7" args="(CRtpFileSender *aPtr, const TRtpEvent &aEvent)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRtpFileSender::SendError </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_c_rtp_file_sender.html">CRtpFileSender</a> * </td>
<td class="paramname"> <em>aPtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const TRtpEvent & </td>
<td class="paramname"> <em>aEvent</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A callback method to be called when a sent packet fails. </p>
<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00073">73</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="acd993430262ed8a1909fc47b0ef36c99"></a><!-- doxytag: member="CRtpFileSender::DoSendError" ref="acd993430262ed8a1909fc47b0ef36c99" args="(const TRtpEvent &aEvent)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRtpFileSender::DoSendError </td>
<td>(</td>
<td class="paramtype">const TRtpEvent & </td>
<td class="paramname"> <em>aEvent</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>An instance method which is called by the static callback function to notify the observer of the error while sending the packet. </p>
<p>Definition at line <a class="el" href="_r_t_p_file_streamer_8cpp_source.html#l00082">82</a> of file <a class="el" href="_r_t_p_file_streamer_8cpp_source.html">RTPFileStreamer.cpp</a>.</p>
</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>