HMMM ... Developers using VxWorks (herein refer to Tornado 2.0.x / vxWorks 5.4) generally use the ftp server configured by the target machine to transfer files, but there is a most significant problem to use the general Windows FTP Client to log in. But you can't get the directory name, a list of file names, although the transmission file is also possible, but the operation of establishing a directory is not visible. Here, a test available solution is given ...
First of all, we need a Wind River to release the DOSFS2 package:
----------------------------
TDK-13231-ZC-0
DOSFS
Tue Nov 23 14:39:05 PST 1999
----------------------------
This package has an FTP Server code that adds support commands (Note that Unsupported ...)
$ Wind_base / target / unsupported / src / netwrs / ftpdlib.c
Second, recommend a book related to the "VxWorks Program Development Practice" edited by Amine / Edw, I'd better refer to the code to modify this unsupported code.
Finally, talk about the topic, how to let FTP Server support ordinary Windows FTP Client (FlashfxP Total Commander etc ..)
After viewing source code, you can know that when you send a list command, you have sent all directory data, in comparison of ordinary windows, FTP Server programs found, the problem is ended, and the next platform compatibility problem
The modification plan is as follows:
Find a key function locally status ftpddirm
/ * Last, Print file name * /
IF (FDPrintf (FD, "% S / N", filename) == error)
Return Error;
This is revised here
/ * Last, Print file name * /
IF (FDPrintf (FD, "% S / R / N", filename) == error)
Return Error;
^ _ ^, Although it is a small problem, but also gains ... Pay attention to use usrataconfig, odefpathset for the necessary initialization