aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
diff options
context:
space:
mode:
authorlbsa712007-09-24 07:30:30 +0000
committerlbsa712007-09-24 07:30:30 +0000
commit1302ef44e3c632159378bc4042c753bcf36e9c63 (patch)
tree6b6295ac233ecb05afe6432a903ec616e4fa079a /OpenSim/Region/Communications/Local/CommunicationsLocal.cs
parent* Trying to streamline CommunicationsManager (diff)
downloadopensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.zip
opensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.tar.gz
opensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.tar.bz2
opensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.tar.xz
* Started major restructusing of comms to prepare for better grid and region functionality
* Working towards one shared set of services * Killed off two projects with very little functionality
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Communications/Local/CommunicationsLocal.cs38
1 files changed, 18 insertions, 20 deletions
diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
index 15167fb..ea972dc 100644
--- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
+++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
@@ -26,25 +26,23 @@
26* 26*
27*/ 27*/
28using System; 28using System;
29using libsecondlife;
29using OpenSim.Framework.Communications; 30using OpenSim.Framework.Communications;
30using OpenSim.Framework.Communications.Cache; 31using OpenSim.Framework.Communications.Cache;
31using OpenSim.Framework.Types;
32using OpenSim.Framework.Servers;
33using OpenSim.Framework.Console; 32using OpenSim.Framework.Console;
34using OpenSim.Framework.Utilities;
35using OpenSim.Framework.Data; 33using OpenSim.Framework.Data;
36using OpenSim.Framework.UserManagement; 34using OpenSim.Framework.Servers;
37using libsecondlife; 35using OpenSim.Framework.Types;
36using OpenSim.Framework.Utilities;
38 37
39namespace OpenSim.Region.Communications.Local 38namespace OpenSim.Region.Communications.Local
40{ 39{
41 public class CommunicationsLocal : CommunicationsManager 40 public class CommunicationsLocal : CommunicationsManager
42 { 41 {
43 public LocalBackEndServices InstanceServices; 42 public LocalBackEndServices InstanceServices;
44 public LocalUserServices UserServices; 43 public IUserServices UserServices;
45 public LocalLoginService LoginServices; 44 public LocalLoginService LoginServices;
46 public LocalInventoryService InvenServices; 45
47
48 protected LocalSettings m_settings; 46 protected LocalSettings m_settings;
49 47
50 protected CommunicationsLocal(NetworkServersInfo serversInfo, BaseHttpServer httpServer, AssetCache assetCache) 48 protected CommunicationsLocal(NetworkServersInfo serversInfo, BaseHttpServer httpServer, AssetCache assetCache)
@@ -58,21 +56,21 @@ namespace OpenSim.Region.Communications.Local
58 { 56 {
59 m_settings = settings; 57 m_settings = settings;
60 58
61 InvenServices = new LocalInventoryService(); 59 LocalInventoryService inventoryService = new LocalInventoryService();
62 InvenServices.AddPlugin(m_settings.InventoryPlugin); 60 inventoryService.AddPlugin(m_settings.InventoryPlugin);
63 m_inventoryServer = InvenServices;
64 61
65 UserServices = new LocalUserServices(this, serversInfo); 62 m_inventoryService = inventoryService;
66 UserServices.AddPlugin(m_settings.UserDatabasePlugin); 63
67 m_userServer = UserServices; 64 LocalUserServices userService = new LocalUserServices(this, serversInfo);
65 userService.AddPlugin(m_settings.UserDatabasePlugin);
66 UserServices = userService;
67 m_userService = UserServices;
68 68
69 InstanceServices = new LocalBackEndServices(); 69 InstanceServices = new LocalBackEndServices();
70 m_gridServer = InstanceServices; 70 m_gridService = InstanceServices;
71 m_interRegion = InstanceServices; 71 m_interRegion = InstanceServices;
72 72
73 //CapsServices = new CAPSService(httpServer); 73 LoginServices = new LocalLoginService(userService, m_settings.WelcomeMessage, this, serversInfo, m_settings.AccountAuthentication);
74
75 LoginServices = new LocalLoginService(UserServices, m_settings.WelcomeMessage, this, serversInfo, m_settings.AccountAuthentication);
76 httpServer.AddXmlRPCHandler("login_to_simulator", LoginServices.XmlRpcLoginMethod); 74 httpServer.AddXmlRPCHandler("login_to_simulator", LoginServices.XmlRpcLoginMethod);
77 } 75 }
78 76
@@ -121,14 +119,14 @@ namespace OpenSim.Region.Communications.Local
121 string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + ""); 119 string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + "");
122 120
123 this.UserServices.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY); 121 this.UserServices.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY);
124 UserProfileData userProf = this.UserServer.GetUserProfile(firstName, lastName); 122 UserProfileData userProf = this.UserService.GetUserProfile(firstName, lastName);
125 if (userProf == null) 123 if (userProf == null)
126 { 124 {
127 return LLUUID.Zero; 125 return LLUUID.Zero;
128 } 126 }
129 else 127 else
130 { 128 {
131 this.InvenServices.CreateNewUserInventory(userProf.UUID); 129 this.m_inventoryService.CreateNewUserInventory(userProf.UUID);
132 Console.WriteLine("Created new inventory set for " + firstName + " " + lastName); 130 Console.WriteLine("Created new inventory set for " + firstName + " " + lastName);
133 return userProf.UUID; 131 return userProf.UUID;
134 } 132 }