📄 bootp_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>bootp.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/bootp/bootp.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>10.7.2002 </dl><dl compact><dt><b><a class="el" href="bug.html#_bug000004">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#_todo000004">Todo: </a></b></dt><dd><ul><li> Offer callback for once the BOOTP client is definitely finished ( <a class="el" href="bootp_8h.html#a7">BOOTPC_STATE_REPLY_GET</a> state)</dl></ul>OpenTCP BOOTP client protocol implementation. Function declarations can be found in <a class="el" href="bootp_8h.html">inet/bootp/bootp.h</a><p><p>Definition in file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p><a href="bootp_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="bootp_8c.html#a7">bootpc_init</a> (UINT8 mode)</td></tr><tr><td> </td><td><font size=-1><em>Initializes BOOTP client.</em> <a href="#a7"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="bootp_8c.html#a8">bootpc_stop</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>Stop BOOTP client operation.</em> <a href="#a8"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>INT8 </td><td valign=bottom><a class="el" href="bootp_8c.html#a9">bootpc_enable</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>Enable BOOTP client operation.</em> <a href="#a9"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="bootp_8c.html#a10">bootpc_run</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>BOOTP client main loop.</em> <a href="#a10"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>INT32 </td><td valign=bottom><a class="el" href="bootp_8c.html#a11">bootpc_eventlistener</a> (INT8 cbhandle, UINT8 event, UINT32 remip, UINT16 remport, UINT16 bufindex, UINT16 dlen)</td></tr><tr><td> </td><td><font size=-1><em>BOOTP event listener.</em> <a href="#a11"></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="bootp_8c.html#a0">bootp_app_init</a> = 0</td></tr><tr><td nowrap>struct {</td></tr><tr><td nowrap valign=top>} </td><td valign=bottom><a class="el" href="bootp_8c.html#a6">bootp</a></td></tr><tr><td> </td><td><font size=-1><em>BOOTP client information.</em> <a href="#a6"></a><em></em></font><br><br></td></tr></table><hr><h2>Function Documentation</h2><a name="a7" doxytag="bootp.c::bootpc_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 bootpc_init </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 </td> <td class="mdname1" valign="top" nowrap> <em>mode</em> </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@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>19.07.2002 </dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> -1 - Error during initialization <li> >=0 - OK</ul></dl>Invoke this function to initialize BOOTP client. This will also trigger BOOTP address-fetching procedure. <p>Definition at line <a class="el" href="bootp_8c-source.html#l00108">108</a> of file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p>References <a class="el" href="bootp_8c.html#a6">bootp</a>, <a class="el" href="bootp_8c-source.html#l00077">bootp_app_init</a>, <a class="el" href="bootp_8h-source.html#l00071">BOOTP_CLIENTPORT</a>, <a class="el" href="bootp_8c-source.html#l00335">bootpc_eventlistener()</a>, <a class="el" href="bootp_8h-source.html#l00075">BOOTPC_STATE_DISABLED</a>, <a class="el" href="timers_8c-source.html#l00131">get_timer()</a>, <a class="el" href="udp_8c-source.html#l00175">udp_getsocket()</a>, <a class="el" href="udp_8c-source.html#l00291">udp_open()</a>, <a class="el" href="tcp__ip_8h-source.html#l00140">UDP_OPT_CHECK_CS</a>, and <a class="el" href="tcp__ip_8h-source.html#l00132">UDP_OPT_SEND_CS</a>. </td> </tr></table><a name="a8" doxytag="bootp.c::bootpc_stop"></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"> void bootpc_stop </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@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>09.10.2002</dl>Invoke this function to disable BOOTP client operation once it is not needed any more or just to temporarily suspend it's operation. <p>Definition at line <a class="el" href="bootp_8c-source.html#l00150">150</a> of file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p>References <a class="el" href="bootp_8c.html#a6">bootp</a>, <a class="el" href="bootp_8c-source.html#l00077">bootp_app_init</a>, and <a class="el" href="bootp_8h-source.html#l00075">BOOTPC_STATE_DISABLED</a>. </td> </tr></table><a name="a9" doxytag="bootp.c::bootpc_enable"></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 bootpc_enable </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@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>09.10.2002</dl>Invoke this function to enable BOOTP client operation. <p>Definition at line <a class="el" href="bootp_8c-source.html#l00165">165</a> of file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p>References <a class="el" href="bootp_8c.html#a6">bootp</a>, <a class="el" href="bootp_8c-source.html#l00077">bootp_app_init</a>, and <a class="el" href="bootp_8h-source.html#l00076">BOOTPC_STATE_ENABLED</a>. </td> </tr></table><a name="a10" doxytag="bootp.c::bootpc_run"></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"> void bootpc_run </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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -