<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>unbound: port_if Struct 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.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> </div> <div class="contents"> <h1>port_if Struct Reference</h1><!-- doxytag: class="port_if" -->Outgoing interface. <a href="#_details">More...</a> <p> <code>#include <outside_network.h></code> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Fields</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct sockaddr_storage </td><td class="memItemRight" valign="bottom"><a class="el" href="structport__if.html#5bb7437ad217d41c79933eaf10d36101">addr</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">address ready to allocate new socket (except port no). <a href="#5bb7437ad217d41c79933eaf10d36101"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02e16ac93376e48a1268390930ee596f"></a><!-- doxytag: member="port_if::addrlen" ref="02e16ac93376e48a1268390930ee596f" args="" --> socklen_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structport__if.html#02e16ac93376e48a1268390930ee596f">addrlen</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">length of addr field <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="structport__if.html#d8a623f4e51133130f2039da679f3370">avail_ports</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">the available ports array. <a href="#d8a623f4e51133130f2039da679f3370"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6d1ec67df89d13201cf1c09007053316"></a><!-- doxytag: member="port_if::avail_total" ref="6d1ec67df89d13201cf1c09007053316" args="" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="structport__if.html#6d1ec67df89d13201cf1c09007053316">avail_total</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">the total number of available ports (size of the array) <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structport__comm.html">port_comm</a> ** </td><td class="memItemRight" valign="bottom"><a class="el" href="structport__if.html#ab01fe2739237ff975613045b55a7f42">out</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">array of the commpoints currently in use. <a href="#ab01fe2739237ff975613045b55a7f42"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9d907d7214d6396dea9765bd6091bccc"></a><!-- doxytag: member="port_if::maxout" ref="9d907d7214d6396dea9765bd6091bccc" args="" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="structport__if.html#9d907d7214d6396dea9765bd6091bccc">maxout</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">max number of fds, size of out array <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21c89a8814e7830dd2d3f3d29c30b047"></a><!-- doxytag: member="port_if::inuse" ref="21c89a8814e7830dd2d3f3d29c30b047" args="" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="structport__if.html#21c89a8814e7830dd2d3f3d29c30b047">inuse</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">number of commpoints (and thus also ports) in use <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Outgoing interface. <p> Ports available and currently used are tracked per interface <hr><h2>Field Documentation</h2> <a class="anchor" name="5bb7437ad217d41c79933eaf10d36101"></a><!-- doxytag: member="port_if::addr" ref="5bb7437ad217d41c79933eaf10d36101" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct sockaddr_storage <a class="el" href="structport__if.html#5bb7437ad217d41c79933eaf10d36101">port_if::addr</a><code> [read]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> address ready to allocate new socket (except port no). <p> <p>Referenced by <a class="el" href="outside__network_8c_source.html#l00795">select_ifport()</a>, and <a class="el" href="outside__network_8c_source.html#l00449">setup_if()</a>.</p> </div> </div><p> <a class="anchor" name="d8a623f4e51133130f2039da679f3370"></a><!-- doxytag: member="port_if::avail_ports" ref="d8a623f4e51133130f2039da679f3370" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int* <a class="el" href="structport__if.html#d8a623f4e51133130f2039da679f3370">port_if::avail_ports</a> </td> </tr> </table> </div> <div class="memdoc"> <p> the available ports array. <p> These are unused. Only the first total-inuse part is filled. <p>Referenced by <a class="el" href="outside__network_8c_source.html#l00624">outside_network_delete()</a>, <a class="el" href="outside__network_8c_source.html#l00254">portcomm_loweruse()</a>, <a class="el" href="outside__network_8c_source.html#l00795">select_ifport()</a>, and <a class="el" href="outside__network_8c_source.html#l00449">setup_if()</a>.</p> </div> </div><p> <a class="anchor" name="ab01fe2739237ff975613045b55a7f42"></a><!-- doxytag: member="port_if::out" ref="ab01fe2739237ff975613045b55a7f42" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct <a class="el" href="structport__comm.html">port_comm</a>** <a class="el" href="structport__if.html#ab01fe2739237ff975613045b55a7f42">port_if::out</a><code> [read]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> array of the commpoints currently in use. <p> allocated for max number of fds, first part in use. <p>Referenced by <a class="el" href="outside__network_8c_source.html#l01643">if_get_mem()</a>, <a class="el" href="outside__network_8c_source.html#l00624">outside_network_delete()</a>, <a class="el" href="outside__network_8c_source.html#l00254">portcomm_loweruse()</a>, <a class="el" href="outside__network_8c_source.html#l00795">select_ifport()</a>, and <a class="el" href="outside__network_8c_source.html#l00449">setup_if()</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>services/<a class="el" href="outside__network_8h.html">outside_network.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 13 06:46:34 2009 for unbound 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>