public static void Init() { server = new FabulousFileServer(); #if !Service if (args != null) { try { for (int i = 0; i < args.Length; i++) { if (args[i] == "--config" || args[i] == "-c") { i++; if (i < args.Length) configFile = args[i]; } } } catch { } } #endif if (configFile != null && File.Exists(configFile)) { string[] lines = File.ReadAllLines(configFile); for (int j = 0; j < lines.Length; j++) ProcessCommand(lines[j]); } autosave = true; server.StartServer(); }
public FabulousClientInstance(TcpClient client, FabulousFileServer server) { this.server = server; this.tcpClient = client; connectionTime = DateTime.Now; IsLogged = true; stream = client.GetStream(); thread = new Thread(new ThreadStart(ClientThread)); Endpoint = client.Client.RemoteEndPoint.ToString(); IP = Endpoint.Split(':')[0]; Port = Endpoint.Split(':')[1]; }
public VirtualFileSystem(FabulousFileServer server) { this.server = server; }