aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs
diff options
context:
space:
mode:
authorSean Dague2009-04-22 12:22:05 +0000
committerSean Dague2009-04-22 12:22:05 +0000
commit026dce23addda4cdcc176b773d48dbaa81e8475b (patch)
treeb490a7f006f4cf68f63fb513ca377d099dd8195b /OpenSim/Client/VWoHTTP/VWoHTTPModule.cs
parentfix the build break, thankes mikkopa for pointing out the quick change (diff)
downloadopensim-SC_OLD-026dce23addda4cdcc176b773d48dbaa81e8475b.zip
opensim-SC_OLD-026dce23addda4cdcc176b773d48dbaa81e8475b.tar.gz
opensim-SC_OLD-026dce23addda4cdcc176b773d48dbaa81e8475b.tar.bz2
opensim-SC_OLD-026dce23addda4cdcc176b773d48dbaa81e8475b.tar.xz
fix line endings on new files
Diffstat (limited to '')
-rw-r--r--OpenSim/Client/VWoHTTP/VWoHTTPModule.cs138
1 files changed, 69 insertions, 69 deletions
diff --git a/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs b/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs
index b326122..f698c8c 100644
--- a/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs
+++ b/OpenSim/Client/VWoHTTP/VWoHTTPModule.cs
@@ -1,69 +1,69 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using Nini.Config; 4using Nini.Config;
5using OpenMetaverse; 5using OpenMetaverse;
6using OpenSim.Client.VWoHTTP.ClientStack; 6using OpenSim.Client.VWoHTTP.ClientStack;
7using OpenSim.Framework.Servers; 7using OpenSim.Framework.Servers;
8using OpenSim.Framework.Servers.Interfaces; 8using OpenSim.Framework.Servers.Interfaces;
9using OpenSim.Region.Framework.Interfaces; 9using OpenSim.Region.Framework.Interfaces;
10using OpenSim.Region.Framework.Scenes; 10using OpenSim.Region.Framework.Scenes;
11 11
12namespace OpenSim.Client.VWoHTTP 12namespace OpenSim.Client.VWoHTTP
13{ 13{
14 class VWoHTTPModule : IRegionModule, IHttpAgentHandler 14 class VWoHTTPModule : IRegionModule, IHttpAgentHandler
15 { 15 {
16 16
17 private IHttpServer m_httpd; 17 private IHttpServer m_httpd;
18 18
19 private readonly List<Scene> m_scenes = new List<Scene>(); 19 private readonly List<Scene> m_scenes = new List<Scene>();
20 20
21 private Dictionary<UUID, VWHClientView> m_clients = new Dictionary<UUID, VWHClientView>(); 21 private Dictionary<UUID, VWHClientView> m_clients = new Dictionary<UUID, VWHClientView>();
22 22
23 #region Implementation of IRegionModule 23 #region Implementation of IRegionModule
24 24
25 public void Initialise(Scene scene, IConfigSource source) 25 public void Initialise(Scene scene, IConfigSource source)
26 { 26 {
27 m_scenes.Add(scene); 27 m_scenes.Add(scene);
28 28
29 m_httpd = scene.CommsManager.HttpServer; 29 m_httpd = scene.CommsManager.HttpServer;
30 } 30 }
31 31
32 public void PostInitialise() 32 public void PostInitialise()
33 { 33 {
34 m_httpd.AddAgentHandler("vwohttp", this); 34 m_httpd.AddAgentHandler("vwohttp", this);
35 } 35 }
36 36
37 public void Close() 37 public void Close()
38 { 38 {
39 m_httpd.RemoveAgentHandler("vwohttp", this); 39 m_httpd.RemoveAgentHandler("vwohttp", this);
40 } 40 }
41 41
42 public string Name 42 public string Name
43 { 43 {
44 get { return "VWoHTTP ClientStack"; } 44 get { return "VWoHTTP ClientStack"; }
45 } 45 }
46 46
47 public bool IsSharedModule 47 public bool IsSharedModule
48 { 48 {
49 get { return true; } 49 get { return true; }
50 } 50 }
51 51
52 #endregion 52 #endregion
53 53
54 #region Implementation of IHttpAgentHandler 54 #region Implementation of IHttpAgentHandler
55 55
56 public bool Handle(OSHttpRequest req, OSHttpResponse resp) 56 public bool Handle(OSHttpRequest req, OSHttpResponse resp)
57 { 57 {
58 58
59 return false; 59 return false;
60 } 60 }
61 61
62 public bool Match(OSHttpRequest req, OSHttpResponse resp) 62 public bool Match(OSHttpRequest req, OSHttpResponse resp)
63 { 63 {
64 return req.Url.ToString().Contains("vwohttp"); 64 return req.Url.ToString().Contains("vwohttp");
65 } 65 }
66 66
67 #endregion 67 #endregion
68 } 68 }
69} 69}