Sophie

Sophie

distrib > Fedora > 20 > x86_64 > media > updates > by-pkgid > c579c38484b8ffa244858626df1128ca > files > 113

libhtp-doc-0.5.6-3.fc20.noarch.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>HTP: htp_connection_private.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">HTP
   &#160;<span id="projectnumber">0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_5edaa2d740570af18be6e40ef0aff597.html">htp</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">htp_connection_private.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="htp__connection__private_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0e75f2edfbf1cbd3a7103558dd27ba65"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__connection__private_8h.html#a0e75f2edfbf1cbd3a7103558dd27ba65">htp_conn_create</a> (void)</td></tr>
<tr class="separator:a0e75f2edfbf1cbd3a7103558dd27ba65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1eed38c91081a3c768181644bf93ba0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__connection__private_8h.html#ac1eed38c91081a3c768181644bf93ba0">htp_conn_close</a> (<a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *conn, const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *timestamp)</td></tr>
<tr class="separator:ac1eed38c91081a3c768181644bf93ba0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c3166bd9ba64e90d9b3cf98ebb61a8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__connection__private_8h.html#a9c3166bd9ba64e90d9b3cf98ebb61a8d">htp_conn_destroy</a> (<a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *conn)</td></tr>
<tr class="separator:a9c3166bd9ba64e90d9b3cf98ebb61a8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a381a329d1a945d77c69ebfec96c49f7a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="htp__core_8h.html#ab8a71422665c0773654b9b4d96f01e31">htp_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__connection__private_8h.html#a381a329d1a945d77c69ebfec96c49f7a">htp_conn_open</a> (<a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *conn, const char *remote_addr, int remote_port, const char *local_addr, int local_port, const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *timestamp)</td></tr>
<tr class="separator:a381a329d1a945d77c69ebfec96c49f7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d2ba6dc7a26d5f2a5eee797c053a606"><td class="memItemLeft" align="right" valign="top"><a class="el" href="htp__core_8h.html#ab8a71422665c0773654b9b4d96f01e31">htp_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__connection__private_8h.html#a5d2ba6dc7a26d5f2a5eee797c053a606">htp_conn_remove_tx</a> (<a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *conn, const <a class="el" href="structhtp__tx__t.html">htp_tx_t</a> *tx)</td></tr>
<tr class="separator:a5d2ba6dc7a26d5f2a5eee797c053a606"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7e9443ccccfe30085bfd84a9a0a4c3c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__connection__private_8h.html#ae7e9443ccccfe30085bfd84a9a0a4c3c">htp_conn_track_inbound_data</a> (<a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *conn, size_t len, const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *timestamp)</td></tr>
<tr class="separator:ae7e9443ccccfe30085bfd84a9a0a4c3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1db758114264a9ee3582587d55ed251f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__connection__private_8h.html#a1db758114264a9ee3582587d55ed251f">htp_conn_track_outbound_data</a> (<a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *conn, size_t len, const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *timestamp)</td></tr>
<tr class="separator:a1db758114264a9ee3582587d55ed251f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Ivan Ristic <a href="#" onclick="location.href='mai'+'lto:'+'iva'+'nr'+'@we'+'bk'+'rea'+'to'+'r.c'+'om'; return false;">ivanr<span style="display: none;">.nosp@m.</span>@web<span style="display: none;">.nosp@m.</span>kreat<span style="display: none;">.nosp@m.</span>or.c<span style="display: none;">.nosp@m.</span>om</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ac1eed38c91081a3c768181644bf93ba0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void htp_conn_close </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *&#160;</td>
          <td class="paramname"><em>conn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *&#160;</td>
          <td class="paramname"><em>timestamp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Closes the connection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timestamp</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0e75f2edfbf1cbd3a7103558dd27ba65"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a>* htp_conn_create </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates a new connection structure.</p>
<dl class="section return"><dt>Returns</dt><dd>A new connection structure on success, NULL on memory allocation failure. </dd></dl>

</div>
</div>
<a class="anchor" id="a9c3166bd9ba64e90d9b3cf98ebb61a8d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void htp_conn_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *&#160;</td>
          <td class="paramname"><em>conn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destroys a connection, as well as all the transactions it contains. It is not possible to destroy a connection structure yet leave any of its transactions intact. This is because transactions need its connection and connection structures hold little data anyway. The opposite is true, though it is possible to delete a transaction but leave its connection alive.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a381a329d1a945d77c69ebfec96c49f7a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="htp__core_8h.html#ab8a71422665c0773654b9b4d96f01e31">htp_status_t</a> htp_conn_open </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *&#160;</td>
          <td class="paramname"><em>conn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>remote_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>remote_port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>local_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>local_port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *&#160;</td>
          <td class="paramname"><em>timestamp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Opens a connection. This function will essentially only store the provided data for future reference. The timestamp parameter is optional.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">remote_addr</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">remote_port</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">local_addr</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">local_port</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timestamp</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a5d2ba6dc7a26d5f2a5eee797c053a606"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="htp__core_8h.html#ab8a71422665c0773654b9b4d96f01e31">htp_status_t</a> htp_conn_remove_tx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *&#160;</td>
          <td class="paramname"><em>conn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structhtp__tx__t.html">htp_tx_t</a> *&#160;</td>
          <td class="paramname"><em>tx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes the given transaction structure, which makes it possible to safely destroy it. It is safe to destroy transactions in this way because the index of the transactions (in a connection) is preserved.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tx</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>HTP_OK if transaction was removed (replaced with NULL) or HTP_ERROR if it wasn't found. </dd></dl>

</div>
</div>
<a class="anchor" id="ae7e9443ccccfe30085bfd84a9a0a4c3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void htp_conn_track_inbound_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *&#160;</td>
          <td class="paramname"><em>conn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *&#160;</td>
          <td class="paramname"><em>timestamp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Keeps track of inbound packets and data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timestamp</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1db758114264a9ee3582587d55ed251f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void htp_conn_track_outbound_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__conn__t.html">htp_conn_t</a> *&#160;</td>
          <td class="paramname"><em>conn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="htp__core_8h.html#a26dd949491d83777aea7905224110162">htp_time_t</a> *&#160;</td>
          <td class="paramname"><em>timestamp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Keeps track of outbound packets and data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timestamp</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>