📄 tftpdlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/tftpdLib.html - generated by refgen from tftpdLib.c --> <title> tftpdLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>tftpdLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>tftpdLib</strong> - Trivial File Transfer Protocol server library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./tftpdLib.html#tftpdInit">tftpdInit</a></i>( )</b> - initialize the TFTP server task<br><b><i><a href="./tftpdLib.html#tftpdTask">tftpdTask</a></i>( )</b> - TFTP server daemon task<br><b><i><a href="./tftpdLib.html#tftpdDirectoryAdd">tftpdDirectoryAdd</a></i>( )</b> - add a directory to the access list<br><b><i><a href="./tftpdLib.html#tftpdDirectoryRemove">tftpdDirectoryRemove</a></i>( )</b> - delete a directory from the access list<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library implements the VxWorks Trivial File Transfer Protocol(TFTP) server module. The server can respond to both read and writerequests. It is started by a call to <b><i><a href="./tftpdLib.html#tftpdInit">tftpdInit</a></i>( )</b>.<p>The server has access to a list of directories that can either beprovided in the initial call to <b><i><a href="./tftpdLib.html#tftpdInit">tftpdInit</a></i>( )</b> or changed dynamicallyusing the <b><i><a href="./tftpdLib.html#tftpdDirectoryAdd">tftpdDirectoryAdd</a></i>( )</b> and <b><i>tftpDirectoryRemove</i>( )</b> calls.Requests for files not in the directory trees specified in the accesslist will be rejected, unless the list is empty, in which case allrequests will be allowed. By default, the access list contains thedirectory given in the global variable <b>tftpdDirectory</b>. It is possibleto remove the default by calling <b><i><a href="./tftpdLib.html#tftpdDirectoryRemove">tftpdDirectoryRemove</a></i>( )</b>.<p>For specific information about the TFTP protocol, see RFC 783, "TFTPProtocol."<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>tftpdLib.h</b>, <b>tftpLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tftpdLib.html#top">tftpdLib</a></b>, <b><a href="./tftpLib.html#top">tftpLib</a></b>, RFC 783 "TFTP Protocol", <i>VxWorks Programmer's Guide: Network</i><hr><a name="tftpdInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>tftpdInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>tftpdInit</i>( )</strong> - initialize the TFTP server task</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS tftpdInit ( int stackSize, /* stack size for the tftpdTask */ int nDirectories, /* number of directories allowed read */ char * *directoryNames, /* array of dir names */ BOOL noControl, /* TRUE if no access control required */ int maxConnections )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine will spawn a new TFTP server task, if one does not alreadyexist. If a TFTP server task is running already, <b><i><a href="./tftpdLib.html#tftpdInit">tftpdInit</a></i>( )</b> will simplyreturn without creating a new task. It will simply report whether a newTFTP task was successfully spawned. The argument <i>stackSize</i> can bespecified to change the default stack size for the TFTP server task. Thedefault size is set in the global variable <b>tftpdTaskStackSize</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK, or ERROR if a new TFTP task cannot be created.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tftpdLib.html#top">tftpdLib</a></b><hr><a name="tftpdTask"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>tftpdTask</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>tftpdTask</i>( )</strong> - TFTP server daemon task</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS tftpdTask ( int nDirectories, /* number of dirs allowed access */ char * *directoryNames, /* array of directory names */ int maxConnections /* max number of simultan. connects */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine processes incoming TFTP client requests by spawning a newtask for each connection that is set up.<p>This routine is called by <b><i><a href="./tftpdLib.html#tftpdInit">tftpdInit</a></i>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK, or ERROR if the task returns unexpectedly.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tftpdLib.html#top">tftpdLib</a></b><hr><a name="tftpdDirectoryAdd"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>tftpdDirectoryAdd</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>tftpdDirectoryAdd</i>( )</strong> - add a directory to the access list</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS tftpdDirectoryAdd ( char * fileName /* name of directory to add to access list */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine adds the specified directory name to the access list for the TFTP server.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tftpdLib.html#top">tftpdLib</a></b><hr><a name="tftpdDirectoryRemove"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>tftpdDirectoryRemove</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>tftpdDirectoryRemove</i>( )</strong> - delete a directory from the access list</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS tftpdDirectoryRemove ( char * fileName /* name of directory to add to access list */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine deletes the specified directory name from the access list for the TFTP server.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tftpdLib.html#top">tftpdLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -