📄 dhcpc_8h.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>dhcpc.h 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/include/inet/dhcp/dhcpc.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> <dl compact><dt><b>Author: </b></dt><dd> <ul><li> Vladan Jovanovic (<a href="mailto:vladan.jovanovic@violasystems.com">vladan.jovanovic@violasystems.com</a>) </ul></dl><dl compact><dt><b>Version: </b></dt><dd>1.0 </dl><dl compact><dt><b>Date: </b></dt><dd>23.5.2003</dl>OpenTCP DHCP protocol function declarations, constants, etc.<p><p>Definition in file <a class="el" href="dhcpc_8h-source.html">dhcpc.h</a>.<p><a href="dhcpc_8h-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="dhcpc_8h.html#a38">dhcpc_init</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>Initializes DHCP client.</em> <a href="#a38"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="dhcpc_8h.html#a39">dhcpc_run</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>DHCP client main state machine.</em> <a href="#a39"></a><em></em></font><br><br></td></tr></table><hr><h2>Function Documentation</h2><a name="a38" doxytag="dhcpc.h::dhcpc_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 dhcpc_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> Vladan Jovanovic (<a href="mailto:vladan.jovanovic@violasystems.com">vladan.jovanovic@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>23.05.2003</dl>This function should be called once when system starts to initialize and start DHCP client. Before this function is invoked, localmachine.localip MUST be se to either zero (in which case DHCP client will request any IP address) or a previously assigned IP address (which doesn't mean DHCP server will allow us to continue using this address) in which case DHCP client will first try to obtain that existing IP address. <p>Definition at line <a class="el" href="dhcpc_8c-source.html#l00158">158</a> of file <a class="el" href="dhcpc_8c-source.html">dhcpc.c</a>.<p>References <a class="el" href="dhcpc_8c-source.html#l00568">dhcpc_eventlistener()</a>, <a class="el" href="dhcpc_8c-source.html#l00106">dhcpc_initialized</a>, <a class="el" href="dhcpc_8c-source.html#l00100">dhcpc_soc_handle</a>, <a class="el" href="dhcpc_8c-source.html#l00087">dhcpc_state</a>, <a class="el" href="dhcpc_8c-source.html#l00094">dhcpc_timer_handle</a>, <a class="el" href="timers_8c-source.html#l00131">get_timer()</a>, <a class="el" href="timers_8c-source.html#l00194">init_timer()</a>, <a class="el" href="timers_8h-source.html#l00086">TIMERTIC</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="a39" doxytag="dhcpc.h::dhcpc_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 dhcpc_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> </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> Vladan Jovanovic (<a href="mailto:vladan.jovanovic@violasystems.com">vladan.jovanovic@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>23.05.2003</dl>Call this function periodically from main loop to ensure proper operation. This function holds the main state machine of DHCP client that ensures proper operation. <p>Definition at line <a class="el" href="dhcpc_8c-source.html#l00201">201</a> of file <a class="el" href="dhcpc_8c-source.html">dhcpc.c</a>.<p>References <a class="el" href="timers_8c-source.html#l00233">check_timer()</a>, <a class="el" href="dhcpc_8c-source.html#l00106">dhcpc_initialized</a>, <a class="el" href="dhcpc_8c-source.html#l00140">dhcpc_requested_ip</a>, <a class="el" href="dhcpc_8c-source.html#l00389">dhcpc_send_message()</a>, <a class="el" href="dhcpc_8c-source.html#l00087">dhcpc_state</a>, <a class="el" href="dhcpc_8c-source.html#l00115">dhcpc_t1</a>, <a class="el" href="dhcpc_8c-source.html#l00124">dhcpc_t2</a>, <a class="el" href="dhcpc_8c-source.html#l00094">dhcpc_timer_handle</a>, <a class="el" href="timers_8c-source.html#l00194">init_timer()</a>, and <a class="el" href="timers_8h-source.html#l00086">TIMERTIC</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 + -