⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 http__server_8h.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasysems.com">jari.lahti@violasysems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>13.10.2002</dl>This function should be called before the HTTP Server application is used to set the operating parameters of it <p>Definition at line <a class="el" href="http__server_8c-source.html#l00093">93</a> of file <a class="el" href="http__server_8c-source.html">http_server.c</a>.<p>References <a class="el" href="http__server_8h-source.html#l00137">http_server_state::flen</a>, <a class="el" href="http__server_8h-source.html#l00144">http_server_state::fpoint</a>, <a class="el" href="http__server_8h-source.html#l00130">http_server_state::fstart</a>, <a class="el" href="http__server_8h-source.html#l00154">http_server_state::funacked</a>, <a class="el" href="http__server_8c-source.html#l00075">https_enabled</a>, <a class="el" href="http__server_8h-source.html#l00083">HTTPS_SERVERPORT</a>, <a class="el" href="http__server_8h-source.html#l00086">HTTPS_STATE_FREE</a>, <a class="el" href="http__server_8h-source.html#l00120">http_server_state::ownersocket</a>, <a class="el" href="system_8h-source.html#l00163">RESET_SYSTEM</a>, <a class="el" href="http__server_8h-source.html#l00113">http_server_state::state</a>, <a class="el" href="tcp__ip_8h-source.html#l00225">TCP_DEF_TOUT</a>, <a class="el" href="tcp_8c-source.html#l00155">tcp_getsocket()</a>, <a class="el" href="tcp_8c-source.html#l00290">tcp_listen()</a>, <a class="el" href="tcp__ip_8h-source.html#l00214">TCP_TOS_NORMAL</a>, and <a class="el" href="tcp__ip_8h-source.html#l00310">TCP_TYPE_SERVER</a>.    </td>  </tr></table><a name="a14" doxytag="http_server.h::https_findfile"></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"> INT16 https_findfile </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT8&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>hash</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>UINT8&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>ses</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>09.10.2002 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>hash</em>&nbsp;</td><td>Calculated file-name hash value. Used so that the whole file name doesn't need to be stored in RAM </td></tr><tr><td valign=top><em>ses</em>&nbsp;</td><td>HTTP session identifier </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> -1 - This function should return -1 if no file has been found <li> 1 - This function should return 1 if a file with appropriate hash value has been found. </ul></dl><dl compact><dt><b>Warning: </b></dt><dd> <ul><li> This function <b>MUST</b> be implemented by user application to work with local configuration</ul></dl>This function is invoked by the HTTP server once a hash value of a  requested file name has been calculated. User application uses this hash value to check if appropriate file is available to web server. Appropriate https session entry is then filled accordingly. <p>Definition at line <a class="el" href="https__callbacks_8c-source.html#l00124">124</a> of file <a class="el" href="https__callbacks_8c-source.html">https_callbacks.c</a>.    </td>  </tr></table><a name="a15" doxytag="http_server.h::https_loadbuffer"></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"> INT16 https_loadbuffer </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT8&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>ses</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>UINT8 *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buf</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>UINT16&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buflen</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>09.10.2002 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ses</em>&nbsp;</td><td>HTTP session identifier </td></tr><tr><td valign=top><em>buf</em>&nbsp;</td><td>Pointer to buffer where data is to be stored </td></tr><tr><td valign=top><em>buflen</em>&nbsp;</td><td>Length of the buffer in bytes </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> &gt;=0 - Number of bytes written to buffer </ul></dl><dl compact><dt><b>Warning: </b></dt><dd> <ul><li> This function <b>MUST</b> be implemented by user application to work with local configuration</ul></dl>This handlers' job is to fill the buffer with the data that web server should return back through the TCP connection. This is accomplished based session identifer and values of variables in appropriate https entry. <p>Definition at line <a class="el" href="https__callbacks_8c-source.html#l00173">173</a> of file <a class="el" href="https__callbacks_8c-source.html">https_callbacks.c</a>.<p>References <a class="el" href="https__callbacks_8c-source.html#l00081">https_not_found_page</a>.    </td>  </tr></table><hr><h2>Variable Documentation</h2><a name="a5" doxytag="http_server.h::https"></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"> struct <a class="el" href="structhttp__server__state.html">http_server_state</a> https[] </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This is an array of <a class="el" href="structhttp__server__state.html">http_server_state</a> structures holding various state  information about the HTTP sessions. HTTP server uses this information to determine actions that need to be taken on sockets. <p>Definition at line <a class="el" href="http__server_8h-source.html#l00158">158</a> of file <a class="el" href="http__server_8h-source.html">http_server.h</a>.    </td>  </tr></table><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -