📄 http__server_8c.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>http_server.c File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center><hr><h1>/opentcp/http/http_server.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> <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>Version: </b></dt><dd>1.0 </dl><dl compact><dt><b>Date: </b></dt><dd>9.10.2002 </dl><dl compact><dt><b><a class="el" href="bug.html#_bug000012">Bug: </a></b></dt><dd></dl> <dl compact><dt><b>Warning: </b></dt><dd> </dl><dl compact><dt><b><a class="el" href="todo.html#_todo000012">Todo: </a></b></dt><dd></dl><p>This file implements a simple http 1.0 server that can manage several simultaneous HTTP connections.<p><p>Definition in file <a class="el" href="http__server_8c-source.html">http_server.c</a>.<p><a href="http__server_8c-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top>INT8 </td><td valign=bottom><a class="el" href="http__server_8c.html#a2">https_init</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>Initialize HTTP server variables.</em> <a href="#a2"></a><em></em></font><br><br></td></tr><tr><td colspan=2><br><h2>Variables</h2></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="http__server_8c.html#a0">https_enabled</a> = 0</td></tr><tr><td nowrap align=right valign=top><a class="el" href="structhttp__server__state.html">http_server_state</a> </td><td valign=bottom><a class="el" href="http__server_8c.html#a1">https</a> [NO_OF_HTTP_SESSIONS]</td></tr><tr><td> </td><td><font size=-1><em>Used for storing state information about different HTTP sessions.</em> <a href="#a1"></a><em></em></font><br><br></td></tr></table><hr><h2>Function Documentation</h2><a name="a2" doxytag="http_server.c::https_init"></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"> INT8 https_init </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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><hr><h2>Variable Documentation</h2><a name="a0" doxytag="http_server.c::https_enabled"></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"> UINT8 https_enabled = 0 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Defines whether https_init has already been invoked or not <p>Definition at line <a class="el" href="http__server_8c-source.html#l00075">75</a> of file <a class="el" href="http__server_8c-source.html">http_server.c</a>.<p>Referenced by <a class="el" href="http__server_8c-source.html#l00093">https_init()</a>. </td> </tr></table><a name="a1" doxytag="http_server.c::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[NO_OF_HTTP_SESSIONS] </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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_8c-source.html#l00083">83</a> of file <a class="el" href="http__server_8c-source.html">http_server.c</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 + -