Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 550bbe86d83a7870fdddc73c68e5d2b2 > files > 219

libunbound-devel-1.3.4-1mdv2010.0.i586.rpm

<!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: services/outbound_list.c File 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&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><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="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_d1ccb6fd7b4f0b6c4993c4e5b9d49242.html">services</a>
  </div>
</div>
<div class="contents">
<h1>outbound_list.c File Reference</h1>This file contains functions to help a module keep track of the queries it has outstanding to authoritative servers.  
<a href="#_details">More...</a>
<p>
<code>#include &quot;config.h&quot;</code><br>
<code>#include &quot;<a class="el" href="outbound__list_8h.html">services/outbound_list.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="outside__network_8h.html">services/outside_network.h</a>&quot;</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outbound__list_8c.html#18f6a9a28308b0dc0d4498519433543b">outbound_list_init</a> (struct <a class="el" href="structoutbound__list.html">outbound_list</a> *list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Init the user allocated outbound list structure.  <a href="#18f6a9a28308b0dc0d4498519433543b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outbound__list_8c.html#e4af19fabc2e423c0c3bab2832ef73cf">outbound_list_clear</a> (struct <a class="el" href="structoutbound__list.html">outbound_list</a> *list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clear the user owner outbound list structure.  <a href="#e4af19fabc2e423c0c3bab2832ef73cf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outbound__list_8c.html#e8fbd86b2af832c37fb870a6c9683a53">outbound_list_insert</a> (struct <a class="el" href="structoutbound__list.html">outbound_list</a> *list, struct <a class="el" href="structoutbound__entry.html">outbound_entry</a> *e)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Insert new <a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a> into the list.  <a href="#e8fbd86b2af832c37fb870a6c9683a53"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outbound__list_8c.html#45b20dbf54c04d91e6357163a7e02102">outbound_list_remove</a> (struct <a class="el" href="structoutbound__list.html">outbound_list</a> *list, struct <a class="el" href="structoutbound__entry.html">outbound_entry</a> *e)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove an <a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a> from the list, and deletes it.  <a href="#45b20dbf54c04d91e6357163a7e02102"></a><br></td></tr>
</table>
<hr><h2>Detailed Description</h2>
This file contains functions to help a module keep track of the queries it has outstanding to authoritative servers. 
<p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="18f6a9a28308b0dc0d4498519433543b"></a><!-- doxytag: member="outbound_list.c::outbound_list_init" ref="18f6a9a28308b0dc0d4498519433543b" args="(struct outbound_list *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outbound_list_init           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structoutbound__list.html">outbound_list</a> *&nbsp;</td>
          <td class="paramname"> <em>list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Init the user allocated outbound list structure. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list,:</em>&nbsp;</td><td>the list structure. </td></tr>
  </table>
</dl>

<p>References <a class="el" href="outbound__list_8h_source.html#l00054">outbound_list::first</a>.</p>

<p>Referenced by <a class="el" href="iterator_8c_source.html#l00465">generate_sub_request()</a>, <a class="el" href="iterator_8c_source.html#l00099">iter_new()</a>, and <a class="el" href="outbound__list_8c_source.html#l00053">outbound_list_clear()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e4af19fabc2e423c0c3bab2832ef73cf"></a><!-- doxytag: member="outbound_list.c::outbound_list_clear" ref="e4af19fabc2e423c0c3bab2832ef73cf" args="(struct outbound_list *list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outbound_list_clear           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structoutbound__list.html">outbound_list</a> *&nbsp;</td>
          <td class="paramname"> <em>list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Clear the user owner outbound list structure. 
<p>
Deletes serviced queries. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list,:</em>&nbsp;</td><td>the list structure. It is cleared, but the list struct itself is callers responsability to delete. </td></tr>
  </table>
</dl>

<p>References <a class="el" href="outbound__list_8h_source.html#l00054">outbound_list::first</a>, <a class="el" href="outbound__list_8h_source.html#l00063">outbound_entry::next</a>, <a class="el" href="outbound__list_8c_source.html#l00047">outbound_list_init()</a>, <a class="el" href="outside__network_8c_source.html#l01615">outnet_serviced_query_stop()</a>, and <a class="el" href="outbound__list_8h_source.html#l00067">outbound_entry::qsent</a>.</p>

<p>Referenced by <a class="el" href="iterator_8c_source.html#l02151">iter_clear()</a>, and <a class="el" href="iterator_8c_source.html#l01454">processQueryResponse()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e8fbd86b2af832c37fb870a6c9683a53"></a><!-- doxytag: member="outbound_list.c::outbound_list_insert" ref="e8fbd86b2af832c37fb870a6c9683a53" args="(struct outbound_list *list, struct outbound_entry *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outbound_list_insert           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structoutbound__list.html">outbound_list</a> *&nbsp;</td>
          <td class="paramname"> <em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structoutbound__entry.html">outbound_entry</a> *&nbsp;</td>
          <td class="paramname"> <em>e</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Insert new <a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a> into the list. 
<p>
Caller must allocate the <a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a> with malloc. qstate and qsent are set by caller. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list,:</em>&nbsp;</td><td>the list to add to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>e,:</em>&nbsp;</td><td><a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a> to add, it is only half initialised at call start, fully initialised at call end. </td></tr>
  </table>
</dl>

<p>References <a class="el" href="outbound__list_8h_source.html#l00054">outbound_list::first</a>, <a class="el" href="outbound__list_8h_source.html#l00063">outbound_entry::next</a>, and <a class="el" href="outbound__list_8h_source.html#l00065">outbound_entry::prev</a>.</p>

<p>Referenced by <a class="el" href="iterator_8c_source.html#l01249">processQueryTargets()</a>.</p>

</div>
</div><p>
<a class="anchor" name="45b20dbf54c04d91e6357163a7e02102"></a><!-- doxytag: member="outbound_list.c::outbound_list_remove" ref="45b20dbf54c04d91e6357163a7e02102" args="(struct outbound_list *list, struct outbound_entry *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outbound_list_remove           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structoutbound__list.html">outbound_list</a> *&nbsp;</td>
          <td class="paramname"> <em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structoutbound__entry.html">outbound_entry</a> *&nbsp;</td>
          <td class="paramname"> <em>e</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Remove an <a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a> from the list, and deletes it. 
<p>
Deletes serviced query in the <a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list,:</em>&nbsp;</td><td>the list to remove from. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>e,:</em>&nbsp;</td><td>the <a class="el" href="structentry.html" title="data structure to keep the canned queries in.">entry</a> to remove. </td></tr>
  </table>
</dl>

<p>References <a class="el" href="outbound__list_8h_source.html#l00054">outbound_list::first</a>, <a class="el" href="outbound__list_8h_source.html#l00063">outbound_entry::next</a>, <a class="el" href="outside__network_8c_source.html#l01615">outnet_serviced_query_stop()</a>, <a class="el" href="outbound__list_8h_source.html#l00065">outbound_entry::prev</a>, and <a class="el" href="outbound__list_8h_source.html#l00067">outbound_entry::qsent</a>.</p>

<p>Referenced by <a class="el" href="iterator_8c_source.html#l02011">process_response()</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 13 06:46:31 2009 for unbound by&nbsp;
<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>