private void enableTOSRegistrySetting(boolean enable) { PlatformManager mgr = PlatformManagerFactory.getPlatformManager(); if (mgr.hasCapability(PlatformManagerCapabilities.SetTCPTOSEnabled)) { // see http://wiki.vuze.com/w/AdvancedNetworkSettings try { mgr.setTCPTOSEnabled(enable); } catch (PlatformManagerException pe) { Debug.printStackTrace(pe); } } }