📄 ftpdlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ftpdLib.html - generated by refgen from ftpdLib.c --> <title> ftpdLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference : OS Libraries</i></a></p></blockquote><h1>ftpdLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ftpdLib</strong> - File Transfer Protocol (FTP) server </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./ftpdLib.html#ftpdInit">ftpdInit</a>( )</b> - initialize the FTP server task<br><b><a href="./ftpdLib.html#ftpdDelete">ftpdDelete</a>( )</b> - terminate the FTP server task<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library implements the server side of the File Transfer Protocol (FTP),which provides remote access to the file systems available on a target.The protocol is defined in RFC 959. This implementation supports all commandsrequired by that specification, as well as several additional commands.<p></blockquote><h4>USER INTERFACE</h4><blockquote><p>During system startup, the <b><a href="./ftpdLib.html#ftpdInit">ftpdInit</a>( )</b> routine creates a control connectionat the predefined FTP server port which is monitored by the primary FTPtask. Each FTP session established is handled by a secondary server taskcreated as necessary. The server accepts the following commands:<p><table><tr valign=top><td align=left> HELP </td><td align=left> - List supported commands.</tr><tr valign=top><td align=left> USER </td><td align=left> - Verify user name.</tr><tr valign=top><td align=left> PASS </td><td align=left> - Verify password for the user.</tr><tr valign=top><td align=left> QUIT </td><td align=left> - Quit the session.</tr><tr valign=top><td align=left> LIST </td><td align=left> - List out contents of a directory.</tr><tr valign=top><td align=left> NLST </td><td align=left> - List directory contents using a concise format.</tr><tr valign=top><td align=left> RETR </td><td align=left> - Retrieve a file.</tr><tr valign=top><td align=left> STOR </td><td align=left> - Store a file.</tr><tr valign=top><td align=left> CWD </td><td align=left> - Change working directory.</tr><tr valign=top><td align=left> TYPE </td><td align=left> - Change the data representation type.</tr><tr valign=top><td align=left> PORT </td><td align=left> - Change the port number.</tr><tr valign=top><td align=left> PWD </td><td align=left> - Get the name of current working directory.</tr><tr valign=top><td align=left> STRU </td><td align=left> - Change file structure settings.</tr><tr valign=top><td align=left> MODE </td><td align=left> - Change file transfer mode.</tr><tr valign=top><td align=left> ALLO </td><td align=left> - Reserver sufficient storage.</tr><tr valign=top><td align=left> ACCT </td><td align=left> - Identify the user's account.</tr><tr valign=top><td align=left> PASV </td><td align=left> - Make the server listen on a port for data connection.</tr><tr valign=top><td align=left> NOOP </td><td align=left> - Do nothing.</tr><tr valign=top><td align=left> DELE </td><td align=left> - Delete a file</tr><tr valign=top><td align=left></tr><tr valign=top><td align=left></tr></tr></table>The <b><a href="./ftpdLib.html#ftpdDelete">ftpdDelete</a>( )</b> routine will disable the FTP server until restarted. It reclaims all system resources used by the server tasks and cleanly terminates all active sessions.<p>To use this feature, include the following component:<b>INCLUDE_FTP_SERVER</b><p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>ftpdLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><p><b><a href="./ftpLib.html#top">ftpLib</a></b>, <b><a href="./netDrv.html#top">netDrv</a></b>, <i>RFC-959 File Transfer Protocol </i><hr><a name="ftpdInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ftpdInit( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ftpdInit( )</strong> - initialize the FTP server task</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ftpdInit ( FUNCPTR pLoginRtn, /* user verification routine, or NULL */ int stackSize /* task stack size, or 0 for default */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine installs the password verification routine indicated by<i>pLoginRtn</i> and establishes a control connection for the primary FTPserver task, which it then creates. It is called automatically duringsystem startup if <b>INCLUDE_FTP_SERVER</b> is defined. The primary server task supports simultaneous client sessions, up to the limit specified by the global variable <b>ftpsMaxClients</b>. The default value allows a maximum of four simultaneous connections. The <i>stackSize</i> argument specifies the stack size for the primary server task. It is set to the value specified in the <b>ftpdWorkTaskStackSize</b> global variable by default.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK if server started, or ERROR otherwise.<p></blockquote><h4>ERRNO</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ftpdLib.html#top">ftpdLib</a></b><hr><a name="ftpdDelete"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ftpdDelete( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ftpdDelete( )</strong> - terminate the FTP server task</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ftpdDelete (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine halts the FTP server and closes the control connection. Allclient sessions are removed after completing any commands in progress.When this routine executes, no further client connections will be accepteduntil the server is restarted. This routine is not reentrant and must notbe called from interrupt level.<p></blockquote><h4>NOTE</h4><blockquote><p>If any file transfer operations are in progress when this routine isexecuted, the transfers will be aborted, possibly leaving incomplete fileson the destination host.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK if shutdown completed, or ERROR otherwise.<p></blockquote><h4>ERRNO</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ftpdLib.html#top">ftpdLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -