From 0d685d6a5291f619403ed3fa8b0f5b17da70dac0 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 14 Sep 2007 06:02:24 +0000 Subject: Can now set the http ports that grid server and user server use. --- OpenSim/Framework/General/Configuration/GridConfig.cs | 8 ++++++++ OpenSim/Framework/General/Configuration/UserConfig.cs | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/General/Configuration') diff --git a/OpenSim/Framework/General/Configuration/GridConfig.cs b/OpenSim/Framework/General/Configuration/GridConfig.cs index a81cac2..240303f 100644 --- a/OpenSim/Framework/General/Configuration/GridConfig.cs +++ b/OpenSim/Framework/General/Configuration/GridConfig.cs @@ -19,6 +19,8 @@ namespace OpenSim.Framework.Configuration public string SimRecvKey = ""; public string DatabaseProvider = ""; + + public uint HttpPort = 8001; private ConfigurationMember configMember; public GridConfig(string description, string filename) @@ -41,6 +43,8 @@ namespace OpenSim.Framework.Configuration configMember.addConfigurationOption("sim_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to a simulator", "null", false); configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false); configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); + + configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Http Listener port", "8001" , false); } public bool handleIncomingConfiguration(string configuration_key, object configuration_result) @@ -77,6 +81,10 @@ namespace OpenSim.Framework.Configuration case "database_provider": this.DatabaseProvider = (string)configuration_result; break; + + case "http_port": + HttpPort = (uint)configuration_result; + break; } return true; diff --git a/OpenSim/Framework/General/Configuration/UserConfig.cs b/OpenSim/Framework/General/Configuration/UserConfig.cs index 177506f..776b911 100644 --- a/OpenSim/Framework/General/Configuration/UserConfig.cs +++ b/OpenSim/Framework/General/Configuration/UserConfig.cs @@ -16,6 +16,8 @@ namespace OpenSim.Framework.Configuration public string DatabaseProvider = ""; + public uint HttpPort = 8002; + private ConfigurationMember configMember; public UserConfig(string description, string filename) @@ -26,13 +28,15 @@ namespace OpenSim.Framework.Configuration public void loadConfigurationOptions() { - configMember.addConfigurationOption("default_startup_message", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Startup Message", "Welcome to OGS",false); + configMember.addConfigurationOption("default_startup_message", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Startup Message", "Welcome to OGS", false); configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false); configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false); configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false); configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); + configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Http Listener port", "8002", false); + } public bool handleIncomingConfiguration(string configuration_key, object configuration_result) @@ -54,6 +58,10 @@ namespace OpenSim.Framework.Configuration case "database_provider": this.DatabaseProvider = (string)configuration_result; break; + + case "http_port": + HttpPort = (uint)configuration_result; + break; } return true; -- cgit v1.1