public static void Initialize() { if (shells.Any()) { if (Connected) { Shell_OnDisconnected(); } Shutdown(); Thread.Sleep(0); } // placeholder shell shells.Add(new UnknownShell()); Shell = shells.First(); // clovershell (for legacy compatibility) if (!ConfigIni.Instance.DisableClovershellListener) { var clovershell = new ClovershellConnection() { AutoReconnect = true }; clovershell.OnConnected += Shell_OnConnected; clovershell.OnDisconnected += Shell_OnDisconnected; shells.Add(clovershell); clovershell.Enabled = true; } // new high-tech but slow SSH connection if (!ConfigIni.Instance.DisableSSHListener) { var ssh = new SshClientWrapper(DNS_NAME, null, 22, USERNAME, PASSWORD) { AutoReconnect = true }; ssh.OnConnected += Shell_OnConnected; ssh.OnDisconnected += Shell_OnDisconnected; shells.Add(ssh); ssh.Enabled = true; } }
private NesMiniFileSystemHandler(string path, OS os, ClovershellConnection clovershell) { this.currentPath = path; this.os = os; this.clovershell = clovershell; }
public NesMiniFileSystemHandler(ClovershellConnection clovershell) : this(clovershell, "/") { }
public NesMiniFileSystemHandler(ClovershellConnection clovershell, string startPath) { os = OS.Unix; this.currentPath = startPath; this.clovershell = clovershell; }