diff options
Diffstat (limited to 'OpenSim/Framework/General/Configuration/GridConfig.cs')
-rw-r--r-- | OpenSim/Framework/General/Configuration/GridConfig.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 | |||
19 | public string SimRecvKey = ""; | 19 | public string SimRecvKey = ""; |
20 | 20 | ||
21 | public string DatabaseProvider = ""; | 21 | public string DatabaseProvider = ""; |
22 | |||
23 | public uint HttpPort = 8001; | ||
22 | 24 | ||
23 | private ConfigurationMember configMember; | 25 | private ConfigurationMember configMember; |
24 | public GridConfig(string description, string filename) | 26 | public GridConfig(string description, string filename) |
@@ -41,6 +43,8 @@ namespace OpenSim.Framework.Configuration | |||
41 | configMember.addConfigurationOption("sim_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to a simulator", "null", false); | 43 | configMember.addConfigurationOption("sim_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to a simulator", "null", false); |
42 | configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false); | 44 | configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false); |
43 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); | 45 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); |
46 | |||
47 | configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Http Listener port", "8001" , false); | ||
44 | } | 48 | } |
45 | 49 | ||
46 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | 50 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) |
@@ -77,6 +81,10 @@ namespace OpenSim.Framework.Configuration | |||
77 | case "database_provider": | 81 | case "database_provider": |
78 | this.DatabaseProvider = (string)configuration_result; | 82 | this.DatabaseProvider = (string)configuration_result; |
79 | break; | 83 | break; |
84 | |||
85 | case "http_port": | ||
86 | HttpPort = (uint)configuration_result; | ||
87 | break; | ||
80 | } | 88 | } |
81 | 89 | ||
82 | return true; | 90 | return true; |