论文部分内容阅读
根据软件复用原则,首先考虑的是使用.Net提供的类库,.Net提供了FTPWebRequest类用于客户端访问FTP服务器的相关操作,然而仔细分析,该类的效率相对低下,其中定义了若干与FTP服务器交互指令的方法,但比较分散,例如要想只取得文件名须使用Nlist交互指令,要获取文件大小,又必须使用Size指令等等,由于笔者的应用程序希望遍历整个FTP服务器上
According to the principle of software reuse, the first consideration is to use the class library provided by the Net. Net provides FTPWebRequest class for client-side access to the FTP server-related operations, but careful analysis, the efficiency of this class is relatively low, which defines a number of Interaction with the FTP server instructions, but more scattered, for example, in order to obtain only the file name must use Nlist interactive instructions, to obtain the file size, you must use the Size directive, etc., because the author’s application hopes to traverse the entire FTP server