<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ost::UDPDuplex class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.10 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</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="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>ost::UDPDuplex Class Reference</h1>UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts. Unreliable Datagram Peer Associations. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="socket_8h-source.html">socket.h</a>></code> <p> <p>Inheritance diagram for ost::UDPDuplex:: <p><center><img src="classost_1_1_u_d_p_duplex.gif" usemap="#ost::UDPDuplex_map" border="0"></center> <map name="ost::UDPDuplex_map"> <area href="classost_1_1_u_d_p_transmit.html" alt="ost::UDPTransmit" shape="rect" coords="0,56,106,80"> <area href="classost_1_1_u_d_p_receive.html" alt="ost::UDPReceive" shape="rect" coords="116,56,222,80"> <area href="classost_1_1_u_d_p_socket.html" alt="ost::UDPSocket" shape="rect" coords="0,0,106,24"> <area href="classost_1_1_u_d_p_socket.html" alt="ost::UDPSocket" shape="rect" coords="116,0,222,24"> </map> <a href="classost_1_1_u_d_p_duplex-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="classost_1_1_u_d_p_duplex.html#a0">UDPDuplex</a> (const <a class="el" href="classost_1_1_inet_address.html">InetAddress</a> &bind, <a class="el" href="namespaceost.html#a97">tpport_t</a> port)</td></tr> <tr><td> </td><td><font size=-1><em>Create a UDP duplex as a pair of UDP simplex objects bound to alternating and interconnected port addresses.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="namespaceost.html#a94">sockerror_t</a> </td><td valign=bottom><a class="el" href="classost_1_1_u_d_p_duplex.html#a1">Connect</a> (const <a class="el" href="classost_1_1_inet_host_address.html">InetHostAddress</a> &host, <a class="el" href="namespaceost.html#a97">tpport_t</a> port)</td></tr> <tr><td> </td><td><font size=-1><em>Associate the duplex with a specified peer host.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="namespaceost.html#a94">sockerror_t</a> </td><td valign=bottom><a class="el" href="classost_1_1_u_d_p_duplex.html#a2">Disconnect</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>Disassociate this duplex from any host connection.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts. Unreliable Datagram Peer Associations. <p> Two UDP sockets are typically used on alternating port addresses to assure that sender and receiver data does not collide or echo back. A UDP Duplex is commonly used for full duplex real-time streaming of UDP data between hosts. <p> <dl compact><dt><b> Author: </b><dd> David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> </dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ost::UDPDuplex::UDPDuplex"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> ost::UDPDuplex::UDPDuplex </td> <td class="md">( </td> <td class="md">const <a class="el" href="classost_1_1_inet_address.html">InetAddress</a> &</td> <td class="mdname"> <em>bind</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md"><a class="el" href="namespaceost.html#a97">tpport_t</a></td> <td class="mdname"> <em>port</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Create a UDP duplex as a pair of UDP simplex objects bound to alternating and interconnected port addresses. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>bind </em> </td><td> address to bind this socket to. </td></tr> <tr><td valign=top><em>port </em> </td><td> number to bind sender. </td></tr> <tr><td valign=top><em>port </em> </td><td> number to bind reciever. </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a1" doxytag="ost::UDPDuplex::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 class="md" nowrap valign="top"> <a class="el" href="namespaceost.html#a94">sockerror_t</a> ost::UDPDuplex::Connect </td> <td class="md">( </td> <td class="md">const <a class="el" href="classost_1_1_inet_host_address.html">InetHostAddress</a> &</td> <td class="mdname"> <em>host</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md"><a class="el" href="namespaceost.html#a97">tpport_t</a></td> <td class="mdname"> <em>port</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Associate the duplex with a specified peer host. <p> Both the sender and receiver will be interconnected with the remote host. <p> <dl compact><dt><b> Returns: </b><dd> 0 on success, error code on error. </dl><dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>host </em> </td><td> address to connect socket to. </td></tr> <tr><td valign=top><em>port </em> </td><td> number to connect socket to. </td></tr> </table> </dl> <p> Reimplemented from <a class="el" href="classost_1_1_u_d_p_transmit.html#b2">ost::UDPTransmit</a>. </td> </tr> </table> <a name="a2" doxytag="ost::UDPDuplex::Disconnect"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="namespaceost.html#a94">sockerror_t</a> ost::UDPDuplex::Disconnect </td> <td class="md">( </td> <td class="md">void</td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Disassociate this duplex from any host connection. <p> No data should be read or written until a connection is established. <p> <dl compact><dt><b> Returns: </b><dd> 0 on success, error code on error. </dl> <p> Reimplemented from <a class="el" href="classost_1_1_u_d_p_transmit.html#b5">ost::UDPTransmit</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="socket_8h-source.html">socket.h</a></ul> <hr><address><small>Generated at Fri Jan 4 18:51:52 2002 for CommonC++ 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.10 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>