Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > ed376d6842ea322c25405e7c23b3bc12 > files > 380

libcommoncpp-devel-1.8.0-5.1mdv2010.1.i586.rpm

<!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>GNU CommonC++: ost::TCPV6Socket 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.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1_t_c_p_v6_socket.html">TCPV6Socket</a>
  </div>
</div>
<div class="contents">
<h1>ost::TCPV6Socket Class Reference</h1><!-- doxytag: class="ost::TCPV6Socket" --><!-- doxytag: inherits="ost::Socket" -->
<p>TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="socket_8h_source.html">socket.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ost::TCPV6Socket:</div>
<div class="dynsection">
 <div class="center">
  <img src="classost_1_1_t_c_p_v6_socket.png" usemap="#ost::TCPV6Socket_map" alt=""/>
  <map id="ost::TCPV6Socket_map" name="ost::TCPV6Socket_map">
<area href="classost_1_1_socket.html" alt="ost::Socket" shape="rect" coords="0,0,112,24"/>
</map>
 </div>
</div>

<p><a href="classost_1_1_t_c_p_v6_socket-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">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#a1863a06335cfa738b29e8512fdf7ce9c">onAccept</a> (const <a class="el" href="classost_1_1_i_p_v6_host.html">IPV6Host</a> &amp;ia, <a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a> port)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A method to call in a derived <a class="el" href="classost_1_1_t_c_p_socket.html" title="TCP sockets are used for stream based connected sessions between two sockets.">TCPSocket</a> class that is acting as a server when a connection request is being accepted.  <a href="#a1863a06335cfa738b29e8512fdf7ce9c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="socket_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#acede992ad26a20072d38716d44f243dc">getSocket</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch out the socket.  <a href="#acede992ad26a20072d38716d44f243dc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#a8381cf05daeccc8f78c56a2e1cf33370">getSegmentSize</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#ac0f58056dce530693660bcb6aa4591b1">TCPV6Socket</a> (const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;bind, <a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a> port, unsigned backlog=5, unsigned mss=536)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A TCP "server" is created as a TCP socket that is bound to a hardware address and port number on the local machine and that has a backlog queue to listen for remote connection requests.  <a href="#ac0f58056dce530693660bcb6aa4591b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#ac9dc509341430ce81bfef85ecacc06ec">TCPV6Socket</a> (const char *name, unsigned backlog=5, unsigned mss=536)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a TCP server for a named host interface and service port.  <a href="#ac9dc509341430ce81bfef85ecacc06ec"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classost_1_1_i_p_v6_host.html">IPV6Host</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#a2afe9be7e5c2390b5d6cf5c18c705a9c">getRequest</a> (<a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a> *port=NULL) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return address and port of next connection request.  <a href="#a2afe9be7e5c2390b5d6cf5c18c705a9c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#a9696212802a5b000f0817a8146be904f">reject</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to reject the next incoming connection request.  <a href="#a9696212802a5b000f0817a8146be904f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classost_1_1_i_p_v6_host.html">IPV6Host</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#ac886cc40d05790837f9a52bde00c6170">getLocal</a> (<a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a> *port=NULL) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to get local bound address.  <a href="#ac886cc40d05790837f9a52bde00c6170"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#a490ee599f8bdb269f359f33cc7862845">isPendingConnection</a> (<a class="el" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timeout=TIMEOUT_INF)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to wait for pending connection requests.  <a href="#a490ee599f8bdb269f359f33cc7862845"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_c_p_v6_socket.html#a147770433d2db2f83cf4b7764cf93d69">~TCPV6Socket</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use base socket handler for ending this socket.  <a href="#a147770433d2db2f83cf4b7764cf93d69"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets. </p>
<p>Both error recovery and flow control operate transparently for a TCP socket connection. The TCP socket base class is primary used to bind a TCP "server" for accepting TCP streams.</p>
<p>An implicit and unique <a class="el" href="classost_1_1_t_c_p_v6_socket.html" title="TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets...">TCPV6Socket</a> object exists in Common C++ to represent a bound ipv6 TCP socket acting as a "server" for receiving connection requests. This class is not part of <a class="el" href="classost_1_1_t_c_p_stream.html" title="TCP streams are used to represent TCP client connections to a server by TCP protocol...">TCPStream</a> because such objects normally perform no physical I/O (read or write operations) other than to specify a listen backlog queue and perform "accept" operations for pending connections. The Common C++ <a class="el" href="classost_1_1_t_c_p_v6_socket.html" title="TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets...">TCPV6Socket</a> offers a Peek method to examine where the next pending connection is coming from, and a Reject method to flush the next request from the queue without having to create a session.</p>
<p>The <a class="el" href="classost_1_1_t_c_p_v6_socket.html" title="TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets...">TCPV6Socket</a> also supports a "OnAccept" method which can be called when a <a class="el" href="classost_1_1_t_c_p_stream.html" title="TCP streams are used to represent TCP client connections to a server by TCP protocol...">TCPStream</a> related object is created from a <a class="el" href="classost_1_1_t_c_p_socket.html" title="TCP sockets are used for stream based connected sessions between two sockets.">TCPSocket</a>. By creating a <a class="el" href="classost_1_1_t_c_p_stream.html" title="TCP streams are used to represent TCP client connections to a server by TCP protocol...">TCPStream</a> from a <a class="el" href="classost_1_1_t_c_p_v6_socket.html" title="TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets...">TCPV6Socket</a>, an accept operation automatically occurs, and the <a class="el" href="classost_1_1_t_c_p_v6_socket.html" title="TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets...">TCPV6Socket</a> can then still reject the client connection through the return status of it's OnAccept method.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar &lt;<a href="mailto:dyfet@tycho.com">dyfet@tycho.com</a>&gt; bound server for TCP streams and sessions. </dd></dl>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac0f58056dce530693660bcb6aa4591b1"></a><!-- doxytag: member="ost::TCPV6Socket::TCPV6Socket" ref="ac0f58056dce530693660bcb6aa4591b1" args="(const IPV6Address &amp;bind, tpport_t port, unsigned backlog=5, unsigned mss=536)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ost::TCPV6Socket::TCPV6Socket </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>bind</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a>&nbsp;</td>
          <td class="paramname"> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&nbsp;</td>
          <td class="paramname"> <em>backlog</em> = <code>5</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&nbsp;</td>
          <td class="paramname"> <em>mss</em> = <code>536</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A TCP "server" is created as a TCP socket that is bound to a hardware address and port number on the local machine and that has a backlog queue to listen for remote connection requests. </p>
<p>If the server cannot be created, an exception is thrown.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>bind</em>&nbsp;</td><td>local ip address or interface to use. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>number to bind socket under. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>backlog</em>&nbsp;</td><td>size of connection request queue. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mss</em>&nbsp;</td><td>maximum segment size of streaming buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac9dc509341430ce81bfef85ecacc06ec"></a><!-- doxytag: member="ost::TCPV6Socket::TCPV6Socket" ref="ac9dc509341430ce81bfef85ecacc06ec" args="(const char *name, unsigned backlog=5, unsigned mss=536)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ost::TCPV6Socket::TCPV6Socket </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&nbsp;</td>
          <td class="paramname"> <em>backlog</em> = <code>5</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&nbsp;</td>
          <td class="paramname"> <em>mss</em> = <code>536</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a TCP server for a named host interface and service port. </p>
<p>We use [host/]port for specifying the optional host name and service port since ':' is a valid char for ipv6 addresses.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>of host interface and service to use. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>backlog</em>&nbsp;</td><td>size of connection request queue. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mss</em>&nbsp;</td><td>maximum segment size of streaming buffers. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a147770433d2db2f83cf4b7764cf93d69"></a><!-- doxytag: member="ost::TCPV6Socket::~TCPV6Socket" ref="a147770433d2db2f83cf4b7764cf93d69" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual ost::TCPV6Socket::~TCPV6Socket </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Use base socket handler for ending this socket. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac886cc40d05790837f9a52bde00c6170"></a><!-- doxytag: member="ost::TCPV6Socket::getLocal" ref="ac886cc40d05790837f9a52bde00c6170" args="(tpport_t *port=NULL) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classost_1_1_i_p_v6_host.html">IPV6Host</a> ost::TCPV6Socket::getLocal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a> *&nbsp;</td>
          <td class="paramname"> <em>port</em> = <code>NULL</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used to get local bound address. </p>

<p>Reimplemented from <a class="el" href="classost_1_1_socket.html#aca71d871bfda4dfcab0891cb0c8df1d4">ost::Socket</a>.</p>

<p>References <a class="el" href="classost_1_1_socket.html#a8410324ca8ddf50751830f59afeaf377">ost::Socket::getIPV6Local()</a>.</p>

</div>
</div>
<a class="anchor" id="a2afe9be7e5c2390b5d6cf5c18c705a9c"></a><!-- doxytag: member="ost::TCPV6Socket::getRequest" ref="a2afe9be7e5c2390b5d6cf5c18c705a9c" args="(tpport_t *port=NULL) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classost_1_1_i_p_v6_host.html">IPV6Host</a> ost::TCPV6Socket::getRequest </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a> *&nbsp;</td>
          <td class="paramname"> <em>port</em> = <code>NULL</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return address and port of next connection request. </p>
<p>This can be used instead of OnAccept() to pre-evaluate connection requests.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>host requesting a connection. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>number of requestor. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classost_1_1_socket.html#a4f1e7645a2d543e0a665b111c2dba8e9">ost::Socket::getIPV6Sender()</a>.</p>

</div>
</div>
<a class="anchor" id="a8381cf05daeccc8f78c56a2e1cf33370"></a><!-- doxytag: member="ost::TCPV6Socket::getSegmentSize" ref="a8381cf05daeccc8f78c56a2e1cf33370" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ost::TCPV6Socket::getSegmentSize </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acede992ad26a20072d38716d44f243dc"></a><!-- doxytag: member="ost::TCPV6Socket::getSocket" ref="acede992ad26a20072d38716d44f243dc" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="socket_8h.html#a8dc8083897335125630f1af5dafd5831">SOCKET</a> ost::TCPV6Socket::getSocket </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch out the socket. </p>

</div>
</div>
<a class="anchor" id="a490ee599f8bdb269f359f33cc7862845"></a><!-- doxytag: member="ost::TCPV6Socket::isPendingConnection" ref="a490ee599f8bdb269f359f33cc7862845" args="(timeout_t timeout=TIMEOUT_INF)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ost::TCPV6Socket::isPendingConnection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a>&nbsp;</td>
          <td class="paramname"> <em>timeout</em> = <code>TIMEOUT_INF</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used to wait for pending connection requests. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if data packets available. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>timeout</em>&nbsp;</td><td>in milliseconds. TIMEOUT_INF if not specified. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classost_1_1_socket.html#a8eb84be4b5cc91731c16be4f32f5bf3d">ost::Socket::isPending()</a>, and <a class="el" href="socket_8h_source.html#l00175">ost::Socket::pendingInput</a>.</p>

</div>
</div>
<a class="anchor" id="a1863a06335cfa738b29e8512fdf7ce9c"></a><!-- doxytag: member="ost::TCPV6Socket::onAccept" ref="a1863a06335cfa738b29e8512fdf7ce9c" args="(const IPV6Host &amp;ia, tpport_t port)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool ost::TCPV6Socket::onAccept </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_host.html">IPV6Host</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ia</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">tpport_t</a>&nbsp;</td>
          <td class="paramname"> <em>port</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A method to call in a derived <a class="el" href="classost_1_1_t_c_p_socket.html" title="TCP sockets are used for stream based connected sessions between two sockets.">TCPSocket</a> class that is acting as a server when a connection request is being accepted. </p>
<p>The server can implement protocol specific rules to exclude the remote socket from being accepted by returning false. The Peek method can also be used for this purpose.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if client should be accepted. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ia</em>&nbsp;</td><td>internet host address of the client. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>number of the client. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9696212802a5b000f0817a8146be904f"></a><!-- doxytag: member="ost::TCPV6Socket::reject" ref="a9696212802a5b000f0817a8146be904f" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ost::TCPV6Socket::reject </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used to reject the next incoming connection request. </p>

</div>
</div>
<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></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:47 2010 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>