<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>RTPDuplex class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.5 on Fri Oct 5 10:28:26 2001 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center> <hr><h1>RTPDuplex Class Reference</h1>RTP peer host over UDP. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="rtp_h-source.html">cc++/rtp.h</a>></code> <p> <p>Inheritance diagram for RTPDuplex: <p><center><img src="class_RTPDuplex.gif" usemap="#RTPDuplex_map" border="0"></center> <map name="RTPDuplex_map"> <area href="class_RTPQueue.html" alt="RTPQueue" shape="rect" coords="66,112,188,136"> <area href="class_UDPReceive.html" alt="UDPReceive" shape="rect" coords="198,112,320,136"> <area href="class_UDPTransmit.html" alt="UDPTransmit" shape="rect" coords="330,112,452,136"> <area href="class_Thread.html" alt="Thread" shape="rect" coords="0,56,122,80"> <area href="class_MembershipControl.html" alt="MembershipControl" shape="rect" coords="132,56,254,80"> <area href="class_Members.html" alt="Members" shape="rect" coords="132,0,254,24"> </map> <a href="class_RTPDuplex-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#a0">RTPDuplex</a> (const InetAddress &bind, tpport_t local, tpport_t remote, int pri)</td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#a1">~RTPDuplex</a> ()</td></tr> <tr><td nowrap align=right valign=top>sockerror_t </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#a2">Connect</a> (const InetHostAddress &host, tpport_t port=0)</td></tr> <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#b0">isPendingData</a> (<a class="el" href="rtp_h.html#a1">microtimeout_t</a> <a class="el" href="class_RTPQueue.html#o20">timeout</a>)</td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#b1">writeData</a> (const unsigned char *const buffer, size_t len)</td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#b2">readData</a> (unsigned char *buffer, size_t len)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="class_RTPSource.html">RTPSource</a>& </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#b3">getPeer</a> ()</td></tr> <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>tpport_t </td><td valign=bottom><a class="el" href="class_RTPDuplex.html#o0">base</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> RTP peer host over UDP. <p> A peer associated RTP socket pair for physically connected peer hosts. This has no RTCP and assumes the receiver is connected to a known transmitter, hence no "foreign" packets will arrive. <p> <dl compact><dt> <b>Author(s): </b><dd> David Sugar </dl><dl compact><dt> <b>Examples: </b><dd> <p> <a class="el" href="rtpduphello_cpp-example.html#_a1">rtpduphello.cpp</a>.</dl> <p> <p> Definition at line <a class="el" href="rtp_h-source.html#l02390">2390</a> of file <a class="el" href="rtp_h-source.html">rtp.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="RTPDuplex::RTPDuplex"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> RTPDuplex::RTPDuplex ( </b></td> <td valign="bottom"><b> const InetAddress & <em>bind</em>, </b></td> </tr> <tr> <td></td> <td><b> tpport_t <em>local</em>, </b></td> </tr> <tr> <td></td> <td><b> tpport_t <em>remote</em>, </b></td> </tr> <tr> <td></td> <td><b> int <em>pri</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>bind</em> </td><td> network address this socket is to be bound </td></tr> <tr><td valign=top><em>local</em> </td><td> transport port this socket is to be bound </td></tr> <tr><td valign=top><em>remote</em> </td><td> peer transpor port </td></tr> <tr><td valign=top><em>pri</em> </td><td> service thread base priority relative to it's parent </td></tr> </table> </dl> </td> </tr> </table> <a name="a1" doxytag="RTPDuplex::~RTPDuplex"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> RTPDuplex::~RTPDuplex ( </b></td> <td valign="bottom"><b> )<code> [virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a2" doxytag="RTPDuplex::Connect"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> sockerror_t RTPDuplex::Connect ( </b></td> <td valign="bottom"><b> const InetHostAddress & <em>host</em>, </b></td> </tr> <tr> <td></td> <td><b> tpport_t <em>port</em> = 0 ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>host</em> </td><td> peer address </td></tr> <tr><td valign=top><em>port</em> </td><td> peer port. If not specified, the same as the local is used </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> socket status </dl><dl compact><dt> <b>Examples: </b><dd> <a class="el" href="rtpduphello_cpp-example.html#a4">rtpduphello.cpp</a>.</dl> </td> </tr> </table> <a name="b3" doxytag="RTPDuplex::getPeer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> <a class="el" href="class_RTPSource.html">RTPSource</a> & RTPDuplex::getPeer ( </b></td> <td valign="bottom"><b> )<code> [protected]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Returns: </b><dd> the associated peer information </dl> </td> </tr> </table> <a name="b0" doxytag="RTPDuplex::isPendingData"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> bool RTPDuplex::isPendingData ( </b></td> <td valign="bottom"><b> <a class="el" href="rtp_h.html#a1">microtimeout_t</a> <em>timeout</em> )<code> [inline, protected, virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout</em> </td><td> how much time to wait for new data </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> if there is some new data </dl> <p> Reimplemented from <a class="el" href="class_RTPQueue.html#b7">RTPQueue</a>. <p> Definition at line <a class="el" href="rtp_h-source.html#l02425">2425</a> of file <a class="el" href="rtp_h-source.html">rtp.h</a>. </td> </tr> </table> <a name="b2" doxytag="RTPDuplex::readData"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> size_t RTPDuplex::readData ( </b></td> <td valign="bottom"><b> unsigned char * <em>buffer</em>, </b></td> </tr> <tr> <td></td> <td><b> size_t <em>len</em> )<code> [inline, protected, virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>buffer</em> </td><td> where to store the retrieved data </td></tr> <tr><td valign=top><em>len</em> </td><td> how many octets to read </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> number of octets read </dl> <p> Reimplemented from <a class="el" href="class_RTPQueue.html#b12">RTPQueue</a>. <p> Definition at line <a class="el" href="rtp_h-source.html#l02443">2443</a> of file <a class="el" href="rtp_h-source.html">rtp.h</a>. </td> </tr> </table> <a name="b1" doxytag="RTPDuplex::writeData"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> size_t RTPDuplex::writeData ( </b></td> <td valign="bottom"><b> const unsigned char *const <em>buffer</em>, </b></td> </tr> <tr> <td></td> <td><b> size_t <em>len</em> )<code> [inline, protected, virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>buffer</em> </td><td> pointer to data to be written </td></tr> <tr><td valign=top><em>len</em> </td><td> how many octets to write </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> number of octets written </dl> <p> Reimplemented from <a class="el" href="class_RTPQueue.html#b10">RTPQueue</a>. <p> Definition at line <a class="el" href="rtp_h-source.html#l02434">2434</a> of file <a class="el" href="rtp_h-source.html">rtp.h</a>. </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="o0" doxytag="RTPDuplex::base"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> tpport_t RTPDuplex::base<code> [private]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="rtp_h-source.html#l02453">2453</a> of file <a class="el" href="rtp_h-source.html">rtp.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="rtp_h-source.html">rtp.h</a></ul> <hr><address><small>Generated at Fri Oct 5 10:28:26 2001 for ccRTP by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.5 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>