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

📄 serverdirectorycache.cs

📁 C#的FTP客户端演示例子
💻 CS
字号:
namespace FTP.Model.DataStructures.DirectoryCache {
  using System;
  using System.Collections;
  using System.Windows.Forms;
  
  public class ServerDirectoryCache {
    private const string  CRLF = "\r\n";
    private Hashtable CachedServerFileData;  // This HashMap contains data about each folder
    public ServerFileData[] currentDirectoryFileData;

    private InterpretUnixResponse serverReponseInterpreter; // To Do: make an abstract class so we can create other intpreters

    public ServerDirectoryCache() {
        currentDirectoryFileData  = new ServerFileData[0];
        CachedServerFileData      = new Hashtable();
        serverReponseInterpreter  = new InterpretUnixResponse();
    }
    
    // Called from the model when a LIST command has been executed
    public void CacheServerLIST(string pLISTResponse) {

      // Make a pointer to the new data
      currentDirectoryFileData  =  serverReponseInterpreter.processLISTResponse(pLISTResponse);
      //      CachedServerFileData.Add(pServerDirectory, fileData);
        
    }

  }
  
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -