Example #1
0
 public void UiSendStatusInfo()
 {
     // Data sended in case of big event, like connect/disconnect.
     XmlItem xml = new XmlItem("command");
     xml.SetAttribute("action", "ui.info.status");
     xml.SetAttributeBool("logged", IsLogged());
     xml.SetAttributeBool("waiting", IsWaiting());
     xml.SetAttribute("waiting.message", WaitMessage);
     xml.SetAttributeBool("connected", IsConnected());
     xml.SetAttributeBool("netlock", ((Engine.Instance.NetworkLockManager != null) && (Engine.Instance.NetworkLockManager.IsActive())));
     if(CurrentServer != null)
     {
         xml.SetAttribute("server.country.code", CurrentServer.CountryCode);
         xml.SetAttribute("server.display-name", CurrentServer.DisplayName);
     }
     Command(xml);
 }
Example #2
0
        public void UiSendOsInfo()
        {
            // Data sended at connection, never changed, at least until options changes.
            XmlItem xml = new XmlItem("command");
            xml.SetAttribute("action", "ui.info.os");
            xml.SetAttribute("eddie.version.text", Constants.VersionDesc);
            xml.SetAttributeInt("eddie.version.int", Constants.VersionInt);
            xml.SetAttribute("eddie.windows.tap.driver", Constants.WindowsDriverVersion);
            xml.SetAttribute("eddie.windows-xp.tap.driver", Constants.WindowsXpDriverVersion);
            xml.SetAttributeBool("eddie.development", DevelopmentEnvironment);
            xml.SetAttribute("mono.version", Platform.Instance.GetMonoVersion());
            xml.SetAttribute("os.code", Platform.Instance.GetSystemCode());
            xml.SetAttribute("os.name", Platform.Instance.GetName());
            xml.SetAttribute("tools.tap-driver.version", Software.OpenVpnDriver);
            xml.SetAttribute("tools.openvpn.version", Software.OpenVpnVersion);
            xml.SetAttribute("tools.openvpn.path", Software.OpenVpnPath);
            xml.SetAttribute("tools.ssh.version", Software.SshVersion);
            xml.SetAttribute("tools.ssh.path", Software.SshPath);
            xml.SetAttribute("tools.ssl.version", Software.SslVersion);
            xml.SetAttribute("tools.ssl.path", Software.SslPath);

            Command(xml);
        }