diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Client/VWoHTTP/VWoHTTPModule.cs | 138 |
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 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using Nini.Config; | 4 | using Nini.Config; |
5 | using OpenMetaverse; | 5 | using OpenMetaverse; |
6 | using OpenSim.Client.VWoHTTP.ClientStack; | 6 | using OpenSim.Client.VWoHTTP.ClientStack; |
7 | using OpenSim.Framework.Servers; | 7 | using OpenSim.Framework.Servers; |
8 | using OpenSim.Framework.Servers.Interfaces; | 8 | using OpenSim.Framework.Servers.Interfaces; |
9 | using OpenSim.Region.Framework.Interfaces; | 9 | using OpenSim.Region.Framework.Interfaces; |
10 | using OpenSim.Region.Framework.Scenes; | 10 | using OpenSim.Region.Framework.Scenes; |
11 | 11 | ||
12 | namespace OpenSim.Client.VWoHTTP | 12 | namespace 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 | } |