diff options
author | MW | 2007-09-14 06:02:24 +0000 |
---|---|---|
committer | MW | 2007-09-14 06:02:24 +0000 |
commit | 0d685d6a5291f619403ed3fa8b0f5b17da70dac0 (patch) | |
tree | e5cab09dd1b0fcf974b45316c14e759fb08ade22 /OpenSim/Framework/General/Configuration/UserConfig.cs | |
parent | ODE: no more slippin' & slidin' (diff) | |
download | opensim-SC-0d685d6a5291f619403ed3fa8b0f5b17da70dac0.zip opensim-SC-0d685d6a5291f619403ed3fa8b0f5b17da70dac0.tar.gz opensim-SC-0d685d6a5291f619403ed3fa8b0f5b17da70dac0.tar.bz2 opensim-SC-0d685d6a5291f619403ed3fa8b0f5b17da70dac0.tar.xz |
Can now set the http ports that grid server and user server use.
Diffstat (limited to 'OpenSim/Framework/General/Configuration/UserConfig.cs')
-rw-r--r-- | OpenSim/Framework/General/Configuration/UserConfig.cs | 10 |
1 files changed, 9 insertions, 1 deletions
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 | |||
16 | 16 | ||
17 | public string DatabaseProvider = ""; | 17 | public string DatabaseProvider = ""; |
18 | 18 | ||
19 | public uint HttpPort = 8002; | ||
20 | |||
19 | private ConfigurationMember configMember; | 21 | private ConfigurationMember configMember; |
20 | 22 | ||
21 | public UserConfig(string description, string filename) | 23 | public UserConfig(string description, string filename) |
@@ -26,13 +28,15 @@ namespace OpenSim.Framework.Configuration | |||
26 | 28 | ||
27 | public void loadConfigurationOptions() | 29 | public void loadConfigurationOptions() |
28 | { | 30 | { |
29 | configMember.addConfigurationOption("default_startup_message", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Startup Message", "Welcome to OGS",false); | 31 | configMember.addConfigurationOption("default_startup_message", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Startup Message", "Welcome to OGS", false); |
30 | 32 | ||
31 | configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false); | 33 | configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false); |
32 | configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false); | 34 | configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false); |
33 | configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false); | 35 | configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false); |
34 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); | 36 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); |
35 | 37 | ||
38 | configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Http Listener port", "8002", false); | ||
39 | |||
36 | } | 40 | } |
37 | 41 | ||
38 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | 42 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) |
@@ -54,6 +58,10 @@ namespace OpenSim.Framework.Configuration | |||
54 | case "database_provider": | 58 | case "database_provider": |
55 | this.DatabaseProvider = (string)configuration_result; | 59 | this.DatabaseProvider = (string)configuration_result; |
56 | break; | 60 | break; |
61 | |||
62 | case "http_port": | ||
63 | HttpPort = (uint)configuration_result; | ||
64 | break; | ||
57 | } | 65 | } |
58 | 66 | ||
59 | return true; | 67 | return true; |