protected Provider(NetworkPeer network) { Network = network; try { Config = new IniConfigSource(Application.StartupPath + "\\config.ini").Configs["NovaRat"]; } catch (FileNotFoundException ex) { string defaultConfigText = "; Nova Remote Assistance Tool INI Configuration File" + Environment.NewLine + "[NovaRat]" + Environment.NewLine + "; Uncomment the line below for the public Introducer running on an Amazon EC2 server" + Environment.NewLine + "; IntroducerEndPoint = 50.18.245.235:16168" + Environment.NewLine + "; Comment the line below to stop using your own Introducer" + Environment.NewLine + "IntroducerEndPoint = 127.0.0.1:16168" + Environment.NewLine + "MaxNumConnectionAttemptsPerMachine = 3" + Environment.NewLine + "BanTime = 60"; File.WriteAllText(Application.StartupPath + "\\config.ini", defaultConfigText); Config = new IniConfigSource(Application.StartupPath + "\\config.ini").Configs["NovaRat"]; } RegisterMessageHandlers(); }
public LiveControlProvider(NetworkPeer network) : base(network) { MirrorDriver = new DesktopMirror(); DesktopChanges = new List<Rectangle>(); Timer = new Stopwatch(); MirrorDriver.DesktopChange += new EventHandler<DesktopMirror.DesktopChangeEventArgs>(MirrorDriver_DesktopChange); }
public NovaProvider(NetworkPeer network) : base(network) { MachineLookupTable = new MachineLookupTable(); MachineBanTable = new MachineBanTable(); }
public NovaProvider(NetworkPeer network) : base(network) { }
public LiveControlProvider(NetworkPeer network) : base(network) { pendingScreenshots = new Dictionary<uint, Screenshot>(1000); }
public virtual void Clear() { this.connection = null; this.peer = null; this.type = (Message.Type) 0; }
public NovaProvider(NetworkPeer network) : base(network) { ServerMachine = new Machine(); }