diff options
author | Diva Canto | 2010-09-08 11:30:38 -0700 |
---|---|---|
committer | Diva Canto | 2010-09-08 11:30:38 -0700 |
commit | 3fb4a17f1044f5bd995f703233f656f72ebe5269 (patch) | |
tree | 0d8d700bfa2c09a5b3488011bee45bdd689ca24e /OpenSim | |
parent | First version of the Hypergrid HELO service that will enable different backen... (diff) | |
download | opensim-SC-3fb4a17f1044f5bd995f703233f656f72ebe5269.zip opensim-SC-3fb4a17f1044f5bd995f703233f656f72ebe5269.tar.gz opensim-SC-3fb4a17f1044f5bd995f703233f656f72ebe5269.tar.bz2 opensim-SC-3fb4a17f1044f5bd995f703233f656f72ebe5269.tar.xz |
No need for a config var for the HELO message on the server-side. It's robust.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs b/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs index 3b25a52..6c83aff 100644 --- a/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs +++ b/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs | |||
@@ -41,17 +41,10 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
41 | { | 41 | { |
42 | public class HeloServiceConnector : ServiceConnector | 42 | public class HeloServiceConnector : ServiceConnector |
43 | { | 43 | { |
44 | private string m_ConfigName = "HeloService"; | ||
45 | |||
46 | public HeloServiceConnector(IConfigSource config, IHttpServer server, string configName) : | 44 | public HeloServiceConnector(IConfigSource config, IHttpServer server, string configName) : |
47 | base(config, server, configName) | 45 | base(config, server, configName) |
48 | { | 46 | { |
49 | IConfig serverConfig = config.Configs[m_ConfigName]; | 47 | server.AddStreamHandler(new HeloServerGetHandler("opensim-robust")); |
50 | if (serverConfig == null) | ||
51 | throw new Exception(String.Format("No section {0} in config file", m_ConfigName)); | ||
52 | |||
53 | string handlers = serverConfig.GetString("Handlers", "opensim-robust"); | ||
54 | server.AddStreamHandler(new HeloServerGetHandler(handlers)); | ||
55 | } | 48 | } |
56 | } | 49 | } |
57 | 50 | ||