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

📄 tftps_8c.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 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>tftps.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> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindex" href="examples.html">Examples</a> &nbsp; </center><hr><h1>/opentcp/tftp/tftps.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>7.10.2002 </dl><dl compact><dt><b><a class="el" href="bug.html#_bug000022">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#_todo000024">Todo: </a></b></dt><dd><ul><li> Offer callback functions for TFTP server</dl></ul>OpenTCP implementation of TFTP server application. For interface functions declarations see <a class="el" href="tftps_8h.html">/inet/tftp/tftps.h</a>.<p><p>Definition in file <a class="el" href="tftps_8c-source.html">tftps.c</a>.<p><a href="tftps_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&nbsp;</td><td valign=bottom><a class="el" href="tftps_8c.html#a19">tftps_init</a> (void)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Initializes TFTP server.</em> <a href="#a19"></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&nbsp;</td><td valign=bottom><a class="el" href="tftps_8c.html#a9">tftpsapp_init</a> = 0</td></tr><tr><td nowrap>struct {</td></tr><tr><td nowrap valign=top>}&nbsp;</td><td valign=bottom><a class="el" href="tftps_8c.html#a18">tftps</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>TFTP server state information.</em> <a href="#a18"></a><em></em></font><br><br></td></tr></table><hr><h2>Function Documentation</h2><a name="a19" doxytag="tftps.c::tftps_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 tftps_init </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&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><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 <li> &gt;=0 - OK, server intialized</ul></dl>This function should be called before the TFTP Server application is used to set the operating parameters of it <p>Definition at line <a class="el" href="tftps_8c-source.html#l00136">136</a> of file <a class="el" href="tftps_8c-source.html">tftps.c</a>.<p>References <a class="el" href="timers_8c-source.html#l00131">get_timer()</a>, <a class="el" href="tftps_8c.html#a18">tftps</a>, <a class="el" href="tftps_8h-source.html#l00076">TFTPS_SERVERPORT</a>, <a class="el" href="tftps_8c-source.html#l00078">tftpsapp_init</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><hr><h2>Variable Documentation</h2><a name="a9" doxytag="tftps.c::tftpsapp_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"> UINT8 tftpsapp_init = 0      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Defines whether tftps_init has already been invoked or not <p>Definition at line <a class="el" href="tftps_8c-source.html#l00078">78</a> of file <a class="el" href="tftps_8c-source.html">tftps.c</a>.<p>Referenced by <a class="el" href="tftps_8c-source.html#l00136">tftps_init()</a>.    </td>  </tr></table><a name="a18" doxytag="tftps.c::tftps"></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 { ... }   tftps      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>tftps variable holds various information that the tftp server needs for proper operation. These include server state, socket handle, timer handle, remote IP address and port number of the host we're communicating with, retransmit counter and TFTP block number. <p>Referenced by <a class="el" href="tftps_8c-source.html#l00136">tftps_init()</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 + -